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

InsertTabButton – PB Docs 2019 – PowerBuilder Library

InsertTabButton – PB Docs 2019

InsertTabButton

PowerScript function

Description

Inserts a tab button in the RibbonBar control.

Applies to

RibbonBar controls

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ItemHandleAfter

The handle of the tab button after which you want to
insert a tab button.

Text

The text that displays in the tab button.

PictureName

The name of the file that contains the picture. It will be
displayed in 16*16 pixels.

Clicked

The name of the Clicked user event to be bound with the
tab button. The Clicked user event for the tab button must have
a long parameter for receiving the handle of the tab button. For
details, see Clicked in PowerScript Reference.

Item

A tab button item you want to insert.

Return value

Long.

Returns the handle of the inserted item if it succeeds and -1 if an
error occurs. If any argument’s value is null, returns null.

Usage

The user events to be bound with the tab button must be defined
correctly according to the requirements of RibbonTabButtonItem. For
details, see Clicked in PowerScript Reference and Selected in PowerScript Reference.

Example 1

This example inserts a “TabButton2” tab button after the
“TabButton1” tab button and binds both buttons with the
“Ue_TabButtonClicked” user event.

Example 2

This example inserts a “TabButton2” tab button after the
“TabButton1” tab button. It defines a tab button item with various
properties (including Text, Clicked, Selected etc.) and then inserts it
after the “TabButton1” tab button. The “TabButton1” tab button is bound
with the “Ue_TabButtonClicked” user event. The “TabButton2” tab button is
bound with the “Ue_TabButtonClicked” and “Ue_TabButtonSelected” user
events.

See also

InsertTabButtonFirst

InsertTabButtonLast

DeleteTabButton

SetTabButton

GetTabButton

GetTabButtonByIndex

GetTabButtonCount


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