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

GetMenu – PB Docs 2022 – PowerBuilder Library

GetMenu – PB Docs 2022

GetMenu

PowerScript function

Description

Gets the menu that is associated with the ribbon button.

Applies to

RibbonApplicationButtonItem, RibbonTabButtonItem,
RibbonLargeButtonItem, RibbonSmallButtonItem controls

Syntax

For RibbonApplicationButtonItem:

For RibbonTabButtonItem, RibbonLargeButtonItem, and
RibbonSmallButtonItem:

Argument

Description

controlname

The name of the RibbonApplicationButtonItem,
RibbonTabButtonItem, RibbonLargeButtonItem, or
RibbonSmallButtonItem control.

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 associates an application menu (which includes an
“Account” master menu item and a “RecentMenu1” recent menu item) to the
“MyApp” application button; and then gets and stores a copy of the
application menu.

Example 2

This example associates a ribbon menu (which includes an “Add” menu
item) to the tab button; and then gets a copy of the ribbon menu.

See also

SetMenu

GetMenuByButtonHandle


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