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 1: For Ribbon controls – PB Docs 2021 – PowerBuilder Library

Syntax 1: For Ribbon controls – PB Docs 2021

Syntax 1: For Ribbon controls

Description

This is a user event which occurs when the user highlights an item
within the 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,
RibbonComboBoxItem, and RibbonMenuItem)

Arguments for RibbonTabButtonItem,
RibbonLargeButtonItem, RibbonSmallButtonItem, RibbonCheckBoxItem,
RibbonComboBoxItem

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 the mouse is
on.

SubIndex

Long. The index of the submenu item the mouse is
on. 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 the mouse is
on.

Return Values

Long.

Return code choices (specify in a RETURN statement):

0 — Continue processing

Example

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

This example is a user event for a menu item in the ribbon menu.
In this example, the Ue_MenuSelected 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 item and submenu item. 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 button. In this example, the Ue_MasterMenuSelected user
event must be defined with three Long parameters for receiving the
handle of the application button and the index number 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_RecentMenuSelected 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

Clicked

Modified

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