mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
IDEIntf: fixed menu items with enabled state
git-svn-id: trunk@9946 -
This commit is contained in:
parent
0793d0ffb3
commit
776e097c46
@ -367,6 +367,11 @@ begin
|
||||
// register the dynamic section for the component editor
|
||||
DesignerMenuSectionComponentEditor:=RegisterIDEMenuSection(DesignerMenuRoot,
|
||||
'Component editor section');
|
||||
|
||||
// register the custom dynamic section
|
||||
DesignerMenuSectionCustomDynamic:=RegisterIDEMenuSection(DesignerMenuRoot,
|
||||
'Custom dynamic section');
|
||||
|
||||
// register align section
|
||||
DesignerMenuSectionAlign:=RegisterIDEMenuSection(DesignerMenuRoot,
|
||||
'Align section');
|
||||
|
@ -402,6 +402,8 @@ var
|
||||
DesignerMenuRoot: TIDEMenuSection = nil;
|
||||
// Designer: Dynamic section for component editor
|
||||
DesignerMenuSectionComponentEditor: TIDEMenuSection;
|
||||
// Designer: custom dynamic section
|
||||
DesignerMenuSectionCustomDynamic: TIDEMenuSection;
|
||||
// Designer: align section
|
||||
DesignerMenuSectionAlign: TIDEMenuSection;
|
||||
// Designer: tab and order section
|
||||
@ -615,6 +617,7 @@ begin
|
||||
MenuItem.Hint:=Hint;
|
||||
MenuItem.ImageIndex:=ImageIndex;
|
||||
MenuItem.Visible:=Visible;
|
||||
MenuItem.Enabled:=Enabled;
|
||||
MenuItem.OnClick:=@MenuItemClick;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user