Navigation: Ultimate Suite for PowerBuilder Help > PowerMenu/Pro (Ribbon) > Functions > of_ribbonmenu >

of_addcommandbutton

Send comments on this topic.

 

Description:

Adds a menu item to the ribbons program tab menu.

Syntax:

of_RibbonMenu().of_addcommandbutton (string as_text, string as_image, string as_command)

Argument

Description

as_text

The text of the menu item that's being added to the menu.

as_image

The file name of the image used in the menu item. You can use a PowerBuilder image (e.g. "sql!").

as_command

A string representing the menu items command. This string will be passed to the ribbonmenuclicked event when the menu item is clicked.

Return Value:

Always returns 1.

Usage:


Copyright © 2021 Werysoft Inc.