Hi,
I can't seem to find a way to conditionally disable a menu item.
Thanks
Herb
Hi,
I can't seem to find a way to conditionally disable a menu item.
Thanks
Herb
Hi Herb
what type of menu? Custom menu bar, menu item or popup menu?
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Hi Barry,
Popup menu.
Herb
A popup "contextmenu" is specified by assigning a comma separated string of items.
myobj.contextmenu = "one, two,three"
to diable items (in 5.3.2 i've added this functionality) prefix the item with a !
myobj.contextmenu = "one,!two,three"
If you are creating a popup menu programmatically i have added "enabled" as a property of the "menuitem" class.
Last edited by barrymavin; 2020-07-29 at 04:02.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks