Description:
Adds a userobject to a dock panel.
Syntax:
of_adddockitem (long al_position, ref userobject auo_object, string as_text, string as_image, boolean ab_canclose)
of_adddockitem (long al_position, ref userobject auo_object, string as_text, string as_image)
Argument |
Description |
al_position |
A numeric value representing the panel you are adding the object to; TOP, BOTTOM, LEFT and RIGHT. |
auo_object |
A reference to the user object control that will be opened in the panel. |
as_text |
The text that will display in the panle header for the item. |
as_image |
The file name of the image used in the item. You can use a PowerBuilder image (e.g. "sql!"). This value can be blank if no image will be displayed. |
ab_canclose (optional) |
A flag indicating that the panel item can be closed by the user. Default is TRUE. Pass FALSE to prevent the user from closing. |
TOP, BOTTOM, LEFT and RIGHT are constants declared in the PowerDock control.
Return Value:
Always returns 1.
Usage:
Copyright © 2021 Werysoft Inc.