Adding Toolbars to a Window

Create toolbars for windows.

When you define an item in the Menu painter for a menu that will be associated with a frame window, sheet, or a main window, specify that you want to include the item in the toolbar using a specific picture. At runtime, PowerBuilder automatically generates a toolbar for the window containing the menu.

  1. In the Menu painter, specify the display characteristics of the menu items to include on the toolbar.
    See Toolbar item display characteristics in the PowerBuilder Users Guide.
  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. (See Adding a Menu Bar to a Window.)
  4. (Optional) In the Window painter, in the PBToolbar property category, specify other properties, such as the size and location of a floating toolbar.
    For information on setting the toolbar properties, see the PowerBuilder Users Guide.