Le 10 avr. 2014 à 13:40, Christian Schmitz a écrit:

> maybe like this:
> 
>  dim pb as NSPopUpButtonMBS = PopupMenu1.NSPopUpButtonMBS
>  dim menu as NSMenuMBS = pb.menu
>  dim handle as integer = menu.CarbonMenuRef

This gives me a handle of 0.

> Well, if you have a Menu, you could get the item and set enabled flag:
> 
>  dim item as NSMenuItemMBS = menu.Item(0)
>  item.Enabled = false

I hope this would work. Currently, the code I'm using (with a MenuMBS) makes 
nothing with the enabled flag (but works with others like bold or underline); 
if the plugin function is not broken, I “expect” the NSMenuItemMBS.enabled flag 
to fail the same (it would be like an unsupported flag?).
Thank you.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to