Create a Pull-down Menu
You can create a pull-down menu using the Menu Editor, which you access from the Frame Editor.
To create a pull-down menu
1. Click Tools, Menu on the Frame Editor's floating menu bar.
The Menu Editor appears.
2. Click Insert, Pull-down/Slide-off Menu.
3. Click in the layout area.
For all new frames except those created with the menu template, Workbench automatically places the pull‑down menu in the upper left corner of the form.
If, however, a frame is created with the menu template, Workbench provides a default File menu, as noted previously. Click the default File menu button to add a new pull-down menu, as shown in the following illustration:
In either case, Workbench inserts a pull-down menu, with a default label of “Pull-down,” and a single menu button, with a default label of “Button.”
4. Select the pull-down menu and use the Property Inspector to change the Name property to file and the TextLabel property to &File.
The default field name, “fieldn,” is replaced by “menu.file” in the Field List. Dot notation is used in 4GL code to reference submenu items on a pull-down or slide‑off menu.
Note: The “&” can be used in the creation of speed keys. If you do not want to use speed keys with this menu item, enter only
File for the TextLabel property. For more information about assigning speed keys, see
How You Can Assign Speed Keys (see
How You Can Assign Speed Keys).
5. (Optional) Specify other properties for the pull-down menu.
6. Select the default button, “Button.”
The Property Inspector changes focus.
7. Use the Property Inspector to change the Name property to save and the TextLabel property to &Save.
8. (Optional) Specify other properties for the menu button.
9. Close the Menu Editor.
10. Save your changes by clicking File, Save in the Frame Editor.