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

InsertCheckBox – PB Docs 2022 – PowerBuilder Library

InsertCheckBox – PB Docs 2022

InsertCheckBox

PowerScript function

Description

Inserts a check 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 in which you want to
insert a check 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 check box.

Text

The text that displays in the check box.

Clicked

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

Item

A check 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 check box must be defined
correctly according to the requirements of RibbonCheckBoxItem. For
details, see Clicked in PowerScript Reference and Selected in PowerScript Reference.

Example 1

This example inserts the “Print Using PDFlib” check box after the
“Distill Custom PostScript” check box and binds both check boxes with the
“Ue_CheckBoxClicked” user event.

Example 2

This example inserts the “Print Using PDFlib” check box after the
“Distill Custom PostScript” check box and binds it with the
“Ue_CheckBoxClicked” and “Ue_CheckBoxSelected” user events. It first
defines a check box item with various properties (including Text, Clicked,
Selected etc.) and then inserts it after the “Distill Custom PostScript”
check box.

See also

InsertCheckBoxFirst

InsertCheckBoxLast

DeleteCheckBox

SetCheckBox

GetCheckBox

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