mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 14:40:25 +02:00
IDE: designer: menu editor: less overhead
git-svn-id: trunk@52225 -
This commit is contained in:
parent
4819139549
commit
75349695d6
@ -1864,6 +1864,8 @@ begin
|
|||||||
FInitialSelectedMenuItem := aSelect;
|
FInitialSelectedMenuItem := aSelect;
|
||||||
SetInitialBounds(0, 0, aWidth, aHeight);
|
SetInitialBounds(0, 0, aWidth, aHeight);
|
||||||
Name := 'ShadowMenu';
|
Name := 'ShadowMenu';
|
||||||
|
DisableAutoSizing;
|
||||||
|
try
|
||||||
FItemsPopupMenu := TPopupMenu.Create(Self);
|
FItemsPopupMenu := TPopupMenu.Create(Self);
|
||||||
FItemsPopupMenu.Name := 'ItemsPopupMenu';
|
FItemsPopupMenu.Name := 'ItemsPopupMenu';
|
||||||
FActionList := TActionList.Create(Self);
|
FActionList := TActionList.Create(Self);
|
||||||
@ -1889,8 +1891,6 @@ begin
|
|||||||
GlobalDesignHook.AddHandlerObjectPropertyChanged(@OnObjectPropertyChanged);
|
GlobalDesignHook.AddHandlerObjectPropertyChanged(@OnObjectPropertyChanged);
|
||||||
GlobalDesignHook.AddHandlerModified(@OnDesignerModified);
|
GlobalDesignHook.AddHandlerModified(@OnDesignerModified);
|
||||||
GlobalDesignHook.AddHandlerRefreshPropertyValues(@OnDesignerRefreshPropertyValues);
|
GlobalDesignHook.AddHandlerRefreshPropertyValues(@OnDesignerRefreshPropertyValues);
|
||||||
DisableAutoSizing;
|
|
||||||
try
|
|
||||||
AutoSize := False;
|
AutoSize := False;
|
||||||
Color := clBtnFace;
|
Color := clBtnFace;
|
||||||
BorderStyle := bsNone;
|
BorderStyle := bsNone;
|
||||||
|
Loading…
Reference in New Issue
Block a user