1
我的想法是創建自己的功能區,它將繼承自TCustomRibbon。但是,我不能使用基本功能。安裝我的新功能區後,它不顯示組件編輯器選項,例如「添加應用程序菜單」。從TCustomRibbon創建功能區的Delphi不顯示組件編輯器
我自己帶狀的代碼是代碼的精確副本從TRibbon
type
TProkonRibbon = class(TCustomRibbon)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
property ActionManager;
property ScreenTips;
property Align default alTop;
property Anchors;
property ApplicationMenu;
property BiDiMode;
property Caption;
property DocumentName;
property Enabled;
property Font;
property Height default TCustomRibbon.cRibbonHeight;
property HideTabs;
property ParentBiDiMode;
property ParentFont;
property QuickAccessToolbar;
property ShowHelpButton;
property Style;
property Tabs;
// Tab Index must be streamed after the Tabs collection
property TabIndex;
property UseCustomFrame;
property OnHelpButtonClick;
property OnRecentItemClick;
property OnTabChange;
property OnTabVisibleChanged;
end;
我想,TRibbon可能有一個自定義編輯器註冊。如果是這樣,你需要做同樣的事情。 – SilverWarior 2015-03-31 11:07:26