Hello,
i don't understand how to work with the menubar item. For example:
- how to read from code if a menu item is checked or not?
- how to enable/disable a menu item from code?
I understand how to write the JSON string
- how to read from code if "Item With Unique Event Name" is checked/unchecked?
I understand i can get the action with:
- how do i enable "Disabled Item" or read if enabled or not from code?
Thank you!
i don't understand how to work with the menubar item. For example:
- how to read from code if a menu item is checked or not?
- how to enable/disable a menu item from code?
I understand how to write the JSON string
example:
{Text: "_Help", Children:
[
{Text: "Disabled Item", Enabled: False},
{Text: "Item With Unique Event Name",Selected: False, EventName: "mnu1234"},
{Text: "Item With Tag", Tag: "MyTag"}
]
}
- how to read from code if "Item With Unique Event Name" is checked/unchecked?
I understand i can get the action with:
B4X:
Sub mnu1234_Action
End Sub
- how do i enable "Disabled Item" or read if enabled or not from code?
Thank you!