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.

Table 14-6: Toolbar properties in the Application painter

Property

Meaning

ToolbarFrameTitle

The text that displays as the title for the FrameBar when it is floating.

ToolbarSheetTitle

The text that displays as the title for the SheetBar when it is floating.

ToolbarPopMenuText

(String) Text to display on the pop-up menu for toolbars (see below).

ToolbarUserControl

(Boolean) If TRUE (default), users can use the toolbar pop-up menu to hide or show the toolbars, move toolbars, or show text. If FALSE, users cannot manipulate the toolbar.

ToolbarText

(Boolean) If TRUE, text displays in the buttons. If FALSE (the default), text does not display.

ToolbarTips

(Boolean) If TRUE (default), PowerTips display when text is not displayed in the buttons. If FALSE, PowerTips do not 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:

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:

ToolbarPopMenuText = "&Links, &Oben, &Rechts, " +   &
   "&Unten, &Frei positionierbar, &Text anzeigen, " &
   + "&PowerTips anzeigen"