Adding toolbars to a window

PowerBuilder provides an easy way to add toolbars to a window: when you are defining an item in the Menu painter for a menu that will be associated with an MDI frame window, an MDI sheet, or a main window, you simply specify that you want the menu item to display in the toolbar with a specific picture. At runtime, PowerBuilder automatically generates a toolbar for the window containing the menu.

StepsTo add toolbars to a window:

  1. In the Menu painter, specify the display characteristics of the menu items you want to display in the toolbar.

    For details, see “Toolbar item display characteristics”.

  2. (Optional) In the Menu painter, specify drop-down toolbars for menu items.

  3. In the Window painter, associate the menu with the window and turn on the display of the toolbar.

  4. (Optional) In the Window painter, specify other properties, such as the size and location of a floating toolbar, on the Toolbar property page.