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

InsertComboBox – PB Docs 2021 – PowerBuilder Library

InsertComboBox – PB Docs 2021

InsertComboBox

PowerScript function

Description

Inserts a combo box in the panel or group of the RibbonBar
control.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ParentHandle

The handle of the panel or group into which you want to
insert a combo box.

ItemHandleAfter

The handle of the item (check box, combo box, large
button, small button, or group) on the same level after which
you want to insert the combo box.

SelectionChanged

The name of the SelectionChanged user event to be bound
with the combo box. The SelectionChanged user event for the
combo box must have two long parameters for receiving the handle
and index number of the combo box. For details, see SelectionChanged in PowerScript Reference.

Item

A combo box item to be inserted.

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 combo box must be defined
correctly according to the requirements of RibbonComboBoxItem. For
details, see Modified in PowerScript Reference, Selected in PowerScript Reference, and SelectionChanged in PowerScript Reference.

Example 1

This example inserts a combo box after another combo box in a panel.
Both combo boxes are bound with the “Ue_ComboBoxSelectionChanged” user
event.

Example 2

This example inserts the “MyComboBox2” combo box after another combo
box in a panel and binds it with “Ue_ComboBoxSelectionChanged”,
“Ue_ComboBoxSelected” and “Ue_ComboBoxModified” user events. It first
defines a combo box item with various properties (including Label,
PictureName, SelectionChanged, Selected, Modified etc.) and then inserts
it after another combo box.

See also

InsertComboBoxFirst

InsertComboBoxLast

DeleteComboBox

SetComboBox

GetComboBox

GetChildItemByIndex


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