Description:
Adds an control to the toolbar.
Syntax:
of_addobject (string as_text, dragobject ado_object)
of_addobject (string as_text, dragobject ado_object, integer al_position)
Argument |
Description |
as_text |
The text of the button that's being added to the toolbar. |
ado_object |
A reference to a PowerBuilder object that you want to display in the toolbar. |
al_position (optional) |
The position the control will display in the toolbar: LEFT (default) or RIGHT. |
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. Returns -1 if the toolbar is in Vertical orientation mode.
Usage:
Copyright © 2021 Werysoft Inc.