Working With Choice Menus

Contents

Creating a Choice Menu and Displaying Its Resources

  1. From the visual builder palette, choose the choice icon and click in the workarea.

    This creates a choice menu object.

  2. With the new choice object selected, open the Object Manager.

The Resources card displays the Menu editor in the left panel and the choice object's resources in the right panel. For information on modifying resources, see Modifying Object Attributes and Geometry.


Relabeling an Item

Note: You cannot relabel the top level item labeled "choice". You can change its Instance name in the right panel.

  1. In the Menu editor, select the item.

    Hint: Click in the text; selecting the bullet gives you a selection highlight, but not an edit field.

  2. Type a new label.

    The change takes effect when you:


Adding an Item

  1. In the Menu editor, click an existing item.

  2. Press enter, or choose Edit > Add Item.

    Cosmo Code creates a blank space below the selected item.

  3. Type the new item label.

    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.


Moving an Item

Note: You cannot indent or outdent choice items.


Deleting an Item


Adding Behavior to the Choice Menu

Behavior is added to the choice object and not to individual choice items.

Guide to the Cosmo Code Development Environment
12-96*526