When you create an application through Cosmo Code, a menu bar containing File and Edit is automatically added to your frame.
-or-
The Resources card displays the Menu editor in the left panel and the menu bar's resources in the right panel. For information on modifying resources, see Modifying Object Attributes and Geometry.
Note: You cannot relabel the top level item labeled "menubar". You can change its Instance name in the right panel.
Hint: Click in the text; selecting the bullet gives you a selection highlight, but not an edit field.
The change takes effect when you:
Cosmo Code creates a blank space below the selected item, and creates new items at the same level as the selected item, preserving the selected item's submenus and items.
The change takes effect when you:
Note: If you move the mouse outside of the Menu editor before typing a label, Cosmo Code removes the blank space.
Items can be indented right or left and moved up or down. Moved menus take their submenus and items with them.
-or-
Indented menus become items. If they have items indented below them, they become submenus.
-or-
Note: Cosmo Code bases the move by the location of the cursor. If your cursor is in the item label and not the bullet when you move down or up, Cosmo Code indents the item as well as moves it.
A checkbox can precede menu items and not menus.
The right panel of the Resources card updates showing the object's resources.
-or-
If you delete a menu, its submenus and items are moved up and are outdented.
Note: If you delete the menu bar, you cannot recreate it. You can undo the deletion as long as you do so before exiting the visual builder.
Behavior is added to menu items and not menus.
The right panel of the Resources card updates showing the object's resources.
For information on working with event handlers, see Handling Events.
Guide to the Cosmo Code Development Environment
12-96*525