Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetToolbar – PB Docs 2019 – PowerBuilder Library

GetToolbar – PB Docs 2019

GetToolbar

PowerScript function

Description

Gets the current values for alignment, visibility, and title of the
specified toolbar.

Applies to

MDI frame and sheet windows

Syntax

Argument

Description

window

The MDI frame or sheet to which the toolbar belongs

toolbarindex

An integer whose value is the index of the toolbar for
which you want the current settings

visible

A boolean variable in which you want to store a value
indicating whether the toolbar is visible

alignment (optional)

A variable of the ToolbarAlignment enumerated datatype in
which you want to store the current alignment of the
toolbar

floatingtitle (optional)

A string variable in which you want to store the toolbar
title that is displayed when the alignment is Floating!

Return value

Integer.

Returns 1 if it succeeds. GetToolbar returns -1 if there is no
toolbar for the index you specify or if an error occurs. If any argument’s
value is null, returns null.

Usage

To find out the position of the docked or floating toolbar, call
GetToolbarPos.

Examples

This example finds out whether toolbar 1 is visible. It also gets
the alignment and title of toolbar 1. The values are stored in the
variables lb_visible, lta_align, and ls_title:

This example displays the settings for the toolbar index the user
specifies in sle_index. The IF and CHOOSE CASE statements convert the
values to strings so they can be displayed in mle_toolbar:

See also

GetToolbarPos

SetToolbar

SetToolbarPos


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