Changed: Designer property is now public (AV in designer turned out to be an outdated package)
This commit is contained in:
parent
5ff5d3e6ff
commit
a9c1bcc0d6
@ -89,9 +89,6 @@ var
|
||||
GEditors: TObjectBucketList;
|
||||
|
||||
|
||||
type
|
||||
TProtectedX2CustomMenuBar = class(TX2CustomMenuBar);
|
||||
|
||||
|
||||
{$R *.dfm}
|
||||
|
||||
@ -517,8 +514,8 @@ begin
|
||||
if FDesignerAttached or (not Assigned(MenuBar)) then
|
||||
exit;
|
||||
|
||||
TProtectedX2CustomMenuBar(MenuBar).Designer := Self;
|
||||
FDesignerAttached := True;
|
||||
MenuBar.Designer := Self;
|
||||
FDesignerAttached := True;
|
||||
end;
|
||||
|
||||
|
||||
@ -529,7 +526,7 @@ begin
|
||||
|
||||
FDesignerAttached := False;
|
||||
if Assigned(MenuBar) then
|
||||
TProtectedX2CustomMenuBar(MenuBar).Designer := nil;
|
||||
MenuBar.Designer := nil;
|
||||
end;
|
||||
|
||||
|
||||
|
@ -468,8 +468,6 @@ type
|
||||
|
||||
procedure TestMousePos(); virtual;
|
||||
function GetMenuHeight(): Integer; virtual;
|
||||
|
||||
property Designer: IX2MenuBarDesigner read FDesigner write FDesigner;
|
||||
protected
|
||||
procedure SetPainter(const Value: TX2CustomMenuBarPainter); virtual;
|
||||
|
||||
@ -574,6 +572,8 @@ type
|
||||
property Images: TCustomImageList read FImages write SetImages;
|
||||
property Painter: TX2CustomMenuBarPainter read FPainter write SetPainter;
|
||||
property SelectedItem: TX2CustomMenuBarItem read FSelectedItem write SetSelectedItem;
|
||||
|
||||
property Designer: IX2MenuBarDesigner read FDesigner write FDesigner;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user