Hi Erel,
How can I add/remove, disable/enable and change the contents of the menu programatically.
How can I add/remove, disable/enable and change the contents of the menu programatically.
Sub mnuStart_click
msgbox("Start","")
end sub
Sub mnuOptions_click
msgbox("Start","")
end sub
Thanks XverhelstX,
But this what I am not looking for. I need to add a menu item, enable or disable a menu item and change the label of the menu item programatically.
....
3) You cannot change the menu item once it has been set.
Can I ask why you want to do this?
I ask because when I first started with B4A I wanted to change the menu items when I went to a new layout panel. After looking at it carefully I came to the conclusion that if it needed different menu items it really should be a separate activity.