Item
Item objects represent items, toggle items, user defined buttons in Toolbar, Graphics, and Table form objects, and submenus in the menu bar, toolbar, ribbon, and file menus. The following methods are available:
Returns true if there is a modifiable property with the specified name.
The Item class contains the following properties:
on | off
If the value is on, the item can be activated by the user. If the value is off, the item cannot be activated.
on | off
In order for an item to be enabled, the enabled property needs to have the value on for the item itself as well as for all of its parents. In other words, disabling an item also disables all of its subitems.
Item objects also include separators. However, separators do not have any accessible properties.
Item objects for user-defined buttons do not have the title and tooltip properties. For Table form objects, predefined items such as “move up” and “move down” do not have any modifiable properties.
Example Code
app.mainWindow().menuBar("menu1").set("title", "new title");
app.mainWindow().menuBar("menu1").item("toggle_item1").set("text",     "test");