mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 12:59:39 +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;
|
||||
SetInitialBounds(0, 0, aWidth, aHeight);
|
||||
Name := 'ShadowMenu';
|
||||
DisableAutoSizing;
|
||||
try
|
||||
FItemsPopupMenu := TPopupMenu.Create(Self);
|
||||
FItemsPopupMenu.Name := 'ItemsPopupMenu';
|
||||
FActionList := TActionList.Create(Self);
|
||||
@ -1889,8 +1891,6 @@ begin
|
||||
GlobalDesignHook.AddHandlerObjectPropertyChanged(@OnObjectPropertyChanged);
|
||||
GlobalDesignHook.AddHandlerModified(@OnDesignerModified);
|
||||
GlobalDesignHook.AddHandlerRefreshPropertyValues(@OnDesignerRefreshPropertyValues);
|
||||
DisableAutoSizing;
|
||||
try
|
||||
AutoSize := False;
|
||||
Color := clBtnFace;
|
||||
BorderStyle := bsNone;
|
||||
|
Loading…
Reference in New Issue
Block a user