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

GetMasterItem – PB Docs 2022 – PowerBuilder Library

GetMasterItem – PB Docs 2022

GetMasterItem

PowerScript function

Description

Gets the master menu item of the application menu.

Applies to

RibbonApplicationMenu control

Syntax

Argument

Description

controlname

The name of the RibbonApplicationMenu control from which
you want to get the master menu item

ParentIndex (optional)

The index of the master menu item (RibbonMenuItem) whose
submenu you want to get.

If not specified, the master menu item will be obtained;
if specified to a valid value, the submenu item under the master
menu item (whose index is ParentIndex) will be obtained; if
specified to an invalid value, an error would occur and this
operation would return -1.

Index

The index of the master menu item or submenu item you want
to obtain. If index is invalid, an error would occur and this
operation would return -1.

Item

A RibbonMenuItem variable in which you want to store the
master menu item identified by the index.

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 master menu can have no more than two levels.

Examples

This example inserts an “Account” master menu item and an “Account
Settings” submenu item under “Account” and then gets copies of the
“Account” menu and the “Account Settings” submenu.

See also

AddMasterSeparatorItem

ClearRecentItems

DeleteMasterItem

DeleteRecentItem

GetMasterItemCount

GetRecentItem

GetRecentItemCount

GetRecentTitle

InsertMasterItem

InsertMasterItemFirst

InsertMasterItemLast

InsertRecentItem

InsertRecentItemFirst

InsertRecentItemLast

SetMasterItem

SetRecentItem

SetRecentTitle


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