mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 07:30:22 +02:00
carbon: Implements TTrayIcon menu item enabled/disabled
git-svn-id: trunk@21717 -
This commit is contained in:
parent
9d4a8e0fbc
commit
3d9c73bf02
@ -140,6 +140,7 @@ begin
|
||||
Result := NSMenu.initWithTitle(EmptyMenuTitle);
|
||||
// Result.setVersion(0);
|
||||
Result.setDelegate(Self.Handle);
|
||||
Result.setAutoenablesItems(LongBool(NO)); // For menu enabling/disabling
|
||||
|
||||
for i := 0 to APopUpMenu.Items.Count - 1 do
|
||||
begin
|
||||
@ -166,6 +167,7 @@ begin
|
||||
|
||||
// Then a owner for the children
|
||||
InternalOwner := NSMenu.initWithTitle(EmptyMenuTitle);
|
||||
InternalOwner.setAutoenablesItems(LongBool(NO)); // For menu enabling/disabling
|
||||
|
||||
subindex := Length(SubMenuOwners);
|
||||
SetLength(SubMenuOwners, subindex + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user