This project is read-only.



Adds a label item to the XPListBar under the indicated group.


of_addLabel(String group, String text, {String image}, {String toolTip})
of_addLabel(Long group, String text, {String image}, {String toolTip})


Name Type Description
group String or Long The group index or name to which a label is to be added. The name of the group is the name the programmer gave when of_addGroup was called or when of_setText was last called. The group index is the same as the value returned when of_addGroup was called.
text String The text of the label to be added.
image String The name of the image file to be displayed for the label. This parameter is optional and has no default value. The valid fileTypes are GIF, PNG, JPG, BMP, WMF and RLE. Support for PB internal pictures has been added, i.e. Open!, Comment!, etc.
toolTip String The text to be used when displaying the label's toolTip. This parameter is optional and defaults to the label's text

Return Value

Returns a long containing the index assigned of the label.


When using this method, labels are added sequentially to the indicated group.


Long                   ll_group
ll_group               = of_addGroup('File', '', '')

of_addLabel(ll_group, 'Open', 'Open!', 'Open File')
of_addLabel('File', 'Save', 'Save!')

Cannot resolve image macro, invalid image name or id.

See Also

Last edited Sep 24, 2016 at 4:53 PM by cjharris02892, version 9