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

Syntax 5: For RibbonBar controls – PB Docs 2022 – PowerBuilder Library

Syntax 5: For RibbonBar controls – PB Docs 2022

Syntax 5: For RibbonBar controls

Description

Sets the item control in the RibbonBar.

Applies to

RibbonBar
control

Syntax 1

Syntax 2

Argument

Description

controlname

The name of the RibbonBar control in which you want to
set the item.

ItemHandle

The handle of the item which you want to set.

Item

The object of type PowerObject containing information
about the class definition of the item.

Usage

This function can be used to set items including
ApplicationButton, TabButton, Category, Panel, Group, CheckBox,
ComboBox, LargeButton, and SmallButton; but cannot set RibbonMenuItem,
RibbonApplicationMenu, and RibbonMenu. To set RibbonMenuItem, you can
use the SetItem Syntax 4, SetMasterItem, and SetRecentItem functions. To set
RibbonApplicationMenu and RibbonMenu, you can use the SetMenu function.

You can also use the following functions to set the individual
control: SetApplicationButton, SetCategory, SetCheckBox, SetComboBox, SetGroup, SetLargeButton, SetPanel, SetSmallButton, and SetTabButton. For example, the
following three statements have the same effect:

This statement is the simplest, and does not require the item
handle; but it needs to convert the object type from PowerObject to
RibbonCheckBoxItem:

This statement requires the item handle and it needs to convert
the object type from PowerObject to RibbonCheckBoxItem:

This statement requires the item handle but it does not need to
convert the object type:

Return value

Integer.

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

Example 1

This example inserts two tab buttons and then sets the value of
the Enabled property of the first tab button.

Example 2

This example sets the value of the Tag property of the button (a
small button or a large button) being clicked.


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