carbon: Implements TTrayIcon menu item enabled/disabled

git-svn-id: trunk@21717 -
This commit is contained in:
sekelsenmat 2009-09-15 21:21:42 +00:00
parent 9d4a8e0fbc
commit 3d9c73bf02

View File

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