Setting toolbar properties in the Application painter
You can specify global properties for all toolbars in your
application on the Toolbar property page in the Application painter or
by setting properties of the Application object in a script. Typically
you set these in the application’s Open event, but you can set them
anywhere.
Property |
Meaning |
---|---|
ToolbarFrameTitle |
The text that displays as the title for the |
ToolbarSheetTitle |
The text that displays as the title for the |
ToolbarPopMenuText |
(String) Text to display on the pop-up menu for |
ToolbarUserControl |
(Boolean) If TRUE (default), users can use the |
ToolbarText |
(Boolean) If TRUE, text displays in the buttons. |
ToolbarTips |
(Boolean) If TRUE (default), PowerTips display |
Specifying the text in the toolbar’s
pop-up menu
By default, PowerBuilder provides a pop-up menu for the toolbar,
which users can use to manipulate the toolbar. It is similar to the
pop-up menu you use to manipulate the PowerBar and PainterBar.
You can change the text that displays in this menu, but you
cannot change the functionality of the menu items in the menu.
Typically, you do this when you are building an application in a
language other than English.
You change the text as follows:
-
The first two items in the pop-up menu display the titles
set in ToolbarFrameTitle and ToolbarSheetTitle (defaults: FrameBar
and SheetBar). -
The remaining text items are specified by the property
ToolbarPopMenuText. To specify values for this property, use a
comma-delimited list of values to replace the text “Left,” “Top,”
“Right,” “Bottom,” “Floating,” “Show Text,” and “Show
PowerTips”:1ToolbarPopMenuText = "left, top, right, bottom, floating, showText, showPowerTips"For example, to change the text for the toolbar pop-up menu
to German and have hot keys underlined for each, you would specify
the following:123ToolbarPopMenuText = "&Links, &Oben, &Rechts, " + &"&Unten, &Frei positionierbar, &Text anzeigen, " &+ "&PowerTips anzeigen"