A popup menu is a special kind of form that can be added to a form group.
Fundamentally, a popup menu is the same as an ordinary text form, but popup
menus are created with pre-made features like a title, help text, and a specified
number of menu options. To create a popup menu in the EGL form editor, follow
these steps:
- Open a form group in the form editor.
- On the Palette view, click Popup Menu.
- On the form group in the editor, click and drag a rectangle that indicates
the size and shape of the popup menu. The Create Form Part window opens.
- In the Create Form Part Window, type a name for the form in the Enter
part name field. This name will be the name of the form part
in the EGL source code.
- Click OK. The New Popup Menu Template window
opens.
- In the New Popup Menu Template, enter the size of the popup menu in the Width and Height fields.
By default, these fields are populated with the size of the form you created
in the editor.
- In the Menu Title field, type the title of the
menu.
- In the Number of Menu Options field, type the
number of menu options that the popup menu will have.
- In the Menu Help Text field, type any additional
help text for the menu.
- Click Finish. The new popup menu is created
in the editor.
- Add fields to the new popup menu and edit the existing fields as appropriate.
See Creating a constant field and Creating a variable field.