Description:
Adds a button to the toolbar.
Syntax:
of_additem (string as_text, string as_image)
of_additem (string as_text, string as_image, integer al_position)
of_additem (string as_text, string as_image, string as_tiptext)
of_additem (string as_text, string as_image, string as_tiptext, integer al_position)
Argument |
Description |
as_text |
The text of the button that's being added to the toolbar. |
as_image |
The file name of the image used in the button. You can use a PowerBuilder image (e.g. "sql!"). |
al_position (optional) |
The position the button will display in the toolbar: LEFT (default) or RIGHT. |
as_tiptext (optional) |
The text for the tooltip that will display when the mouse hovers over the button. |
LEFT and RIGHT are constants defined in the toolbar control.
Return Value:
Returns a number representing the index of the new item that was added. You can use this index value when calling other toolbar functions.
Usage:
Copyright © 2021 Werysoft Inc.