Sets the text displayed of an item.


of_setText(Long item, String text)
of_setText(String item, String text)


Name Type Description
item Long or String The name or index of button for which the visible indicator is to be set. The name of the button is the name the programmer gave when of_addItem was called or when of_setText was last called. The name is the text displayed for a toolbar when display text is enabled. The index of the button is the same as the value returned when of_addItem was called
text String Text to be used for an item

Return Value

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


This is used to change the text of an item that has already been added to the toolbar. Warning: Using this method will change the value sent to ue_itemClicking and ue_itemClicked. It also changes the name that you will need to use to reference the item.



of_setText('Open', 'Open File')


of_setText('Open File', 'Open')


See Also

Last edited Sep 24, 2016 at 3:08 PM by cjharris02892, version 9