6. Creating and Using Basic Fields : Scalar Fields : Create a Pop-up Button
 
Share this page                  
Create a Pop-up Button
A pop-up button is a button control that has an option menu associated with it. Like the independent control button, you must define the pop-up button's option menu, creating all the menu items and writing scripts for them. Unlike a control button, which always looks like any other control button and never has text, a pop-up button may have either text or an image.
To create a pop-up button
1. Open your frame in the Frame Editor (see Open an Existing Frame (see Open an Existing Frame)).
2. Select the Pop-up Button icon on the field palette.
3. Position and size the pop-up button on the form.
4. Leave the field selected on the form.
5. Set the properties for the pop-up button, including BitmapLabel, PopupAlignment, and TextLabel in the Property Inspector.
Note:  For complete descriptions of each field property, see Pop-up Button Properties (see Pop-up Button Properties) and Common Field Properties (see Common Field Properties).
6. Click Edit, Option Menu.
The Option Menu Editor appears.
7. Define the option menu to be associated with the pop-up button.
For more information about creating menus and menu items, see Creating and Modifying Menus (see Creating and Modifying Menus).
8. Use the Property Inspector to set the properties for each menu item, including the ValueList property, where you specify the choices for a menu list using the Value List dialog.
For more information about defining choice lists, see Add and Delete List Field Items (see Add and Delete List Field Items).
9. Click File, Close in the Option Menu Editor when you are done editing the option menu.