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

GetMenuByButtonHandle – PB Docs 2021 – PowerBuilder Library

GetMenuByButtonHandle – PB Docs 2021

GetMenuByButtonHandle

PowerScript function

Description

Gets the menu associated with the ribbon button according to the
button handle.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

ItemHandle

The handle of the button whose menu you want to
get.

ApplicationMenu

A RibbonApplicationMenu variable in which you want to
store the menu.

Menu

A RibbonMenu variable in which you want to store the
menu.

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 a “MyLargeButton” large button which is
associated with a menu and then gets a copy of the menu according to the
button handle.

Example 2

This example inserts the “MyApp” application button which is
associated with a menu (including an “Account” master item and a
“RecentMenu1” recent item) and then gets a copy of the menu according to
the button handle.

See also

SetMenu

GetMenu


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