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

GetItemParent – PB Docs 2021 – PowerBuilder Library

GetItemParent – PB Docs 2021

GetItemParent

PowerScript function

Description

Gets the parent item (Category, Panel, and Group) in the RibbonBar
control.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ItemHandle

The handle of the child item whose parent item you want to
obtain.

Item

A PowerObject variable in which you want to store the
parent item.

Return value

Integer.

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

Usage

The parent object can be Category, Panel, or Group.

The child item for Category is Panel; the child item for Panel can
be Group, LargeButton, SmallButton, CheckBox, and ComboBox; the child item
for Group can be SmallButton, CheckBox, and ComboBox.

Example 1

This example gets the category and stores it in
lr_Category variable of type RibbonCategoryItem.

Example 2

This example gets the category and stores it in
lpo_Object variable of type PowerObject.

See also

GetChildItemByIndex

GetChildItemCount

GetItemByTag


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