mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-16 12:39:16 +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 := NSMenu.initWithTitle(EmptyMenuTitle);
|
||||||
// Result.setVersion(0);
|
// Result.setVersion(0);
|
||||||
Result.setDelegate(Self.Handle);
|
Result.setDelegate(Self.Handle);
|
||||||
|
Result.setAutoenablesItems(LongBool(NO)); // For menu enabling/disabling
|
||||||
|
|
||||||
for i := 0 to APopUpMenu.Items.Count - 1 do
|
for i := 0 to APopUpMenu.Items.Count - 1 do
|
||||||
begin
|
begin
|
||||||
@ -166,6 +167,7 @@ begin
|
|||||||
|
|
||||||
// Then a owner for the children
|
// Then a owner for the children
|
||||||
InternalOwner := NSMenu.initWithTitle(EmptyMenuTitle);
|
InternalOwner := NSMenu.initWithTitle(EmptyMenuTitle);
|
||||||
|
InternalOwner.setAutoenablesItems(LongBool(NO)); // For menu enabling/disabling
|
||||||
|
|
||||||
subindex := Length(SubMenuOwners);
|
subindex := Length(SubMenuOwners);
|
||||||
SetLength(SubMenuOwners, subindex + 1);
|
SetLength(SubMenuOwners, subindex + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user