Sets the image of a groupBox.


window/userObject level
of_setImage(String image)
dataWindow level
of_setImage(Long item, String image)
of_setImage(String item, String image)


Name Type Description
item Long or String The name or index of the item for which the image is to be set. The text of the item is the text the programmer gave when of_addGroupBox or of_replaceGroupBox was called. The index of the item is the same as the value returned when of_addGroupBox or of_replaceGroupBox was called
image String A string containing the filename of the image to be displayed as the groupBox image. May also contain the name of a PowerBuilder built-in image, i.e. Open!

Return Value

Return SUCCESS (1) if successful and FAILURE (-1) if en error occurs.


When the method is called from a window/userObject level groupBox, there is no item parameter. When the method is called from a dataWindow level, the item is required to locate the correct groupBox.


n_cst_groupBox   lnvo_groupBox
lnvo_groupBox    = CREATE n_cst_groupBox


Long             ll_item
ll_item          = lnvo_groupBox.of_addGroupBox('Settings')

lnvo_groupBox.of_setImage(ll_item, 'GroupBox!')

DESTROY lnvo_groupBox

See Also

Last edited Oct 17, 2016 at 2:30 PM by cjharris02892, version 7