Using menus

You specify the menu and toolbar that display when users run a form by defining a menu in the Menu painter and associating it with the window that serves as the basis for your form style.

Each menu item in the menu you define displays when a form is run. In addition, InfoMaker adds Window and Help menus to allow users to manipulate windows and get online Help when running a form in the InfoMaker environment.

NoteProviding online Help You can define a Help item in the menu bar, then define menu items that display in the Help drop-down menu. The Help items do not display when users run a form within InfoMaker, but they do display when a form is run from an executable. For more information about InfoMaker executable files, see the InfoMaker Users Guide.

Item in a toolbar

As with MDI applications, you can specify that a menu item should display as an item in a toolbar when the form is run.

Scripting

You use the same scripting techniques for menus used in forms as you do for menus used in standard windows. Typically you communicate between a window and its menu by defining user events for the window, then triggering them from the menu using the menu object’s ParentWindow property to refer to the form window; this technique is used in the built-in form styles.

For more information

For more information about using menus and user events, see the PowerBuilder Users Guide.

For more information about associating toolbars with menus, see Chapter 5, “Building an MDI Application.”