IDE: designer: menu editor: less overhead

git-svn-id: trunk@52225 -
This commit is contained in:
mattias 2016-04-20 09:47:03 +00:00
parent 4819139549
commit 75349695d6

View File

@ -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;