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

Syntax 6: For Ribbon controls – PB Docs 2022 – PowerBuilder Library

Syntax 6: For Ribbon controls – PB Docs 2022

Syntax 6: For Ribbon controls

Description

This is a user event which occurs when the user clicks on an item
within a RibbonBar control.

Make sure the parameter (quantities and types) of the user event
is correctly defined according to the requirement of the ribbon
control.

Applies to

Ribbon controls (including RibbonTabButtonItem,
RibbonLargeButtonItem, RibbonSmallButtonItem, RibbonCheckBoxItem, and
RibbonMenuItem)

Arguments for RibbonTabButtonItem,
RibbonLargeButtonItem, RibbonSmallButtonItem,
RibbonCheckBoxItem

Argument

Description

ItemHandle

Long. The handle of the item.

Arguments for RibbonMenuItem (of Normal(0)
type)

Argument

Description

ItemHandle

Long. The handle of the button the menu is
associated with.

Index

Long. The index of the menu item
clicked.

SubIndex

Long. The index of the submenu item clicked. 0
indicates the event is triggered by the main
menu.

Arguments for RibbonMenuItem (of Recent(2)
type)

Argument

Description

ItemHandle

Long. The handle of the button the menu is
associated with.

Index

Long. The index of the menu item
clicked.

Return Values

Long.

Return code choices (specify in a RETURN statement):

0 — Continue processing

Examples

This example is a user event for a tab button. In this example,
the Ue_TabButtonClicked user event must be defined with a long parameter
for receiving the handle of TabButton where the mouse is
clicking.

This example is a user event for a menu item in the ribbon menu.
In this example, the Ue_MenuClicked user event must be defined with
three long parameters for receiving the handle of the tab/large/small
button and the index numbers of the menu and sub menu. Each menu item
can be bound with different events or the same event.

This example is a user event for a master menu item in the
application menu. In this example, the Ue_MasterMenuClicked user event
must be defined with three Long parameters for receiving the handle of
the application button and the index numbers of the master menu item and
submenu item. Each menu item can be bound with different events or the
same event.

This example is a user event for the recent menu item in the
application menu. In this example, the Ue_RecentMenuClicked user event
must be defined with two Long parameters for receiving the handle of the
application button and the index number of the recent menu item. Each
menu item can be bound with different events or the same event.

See also

Modified

Selected

SelectionChanged


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