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.
To add toolbars to a window:
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”.
(Optional) In the Menu painter, specify drop-down toolbars for menu items.
In the Window painter, associate the menu with the window and turn on the display of the toolbar.
(Optional) In the Window painter, specify other properties, such as the size and location of a floating toolbar, on the Toolbar property page.