Setting toolbar properties in the Application painter – PB Docs 2017

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
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:

  • 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”:

    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:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x