of_setText

Description

Sets/changes the text displayed for the groupBox.

Syntax

window/userObject level
of_setText(String text)
dataWindow level
of_setText(Long item, String text)
of_setText(String item, String text)

Parameter(s)

Name Type Description
item Long or String The name or index of the item that is to have the text changed. 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
text String A string containing the new text to display as the groupBox heading

Return Value

None

Usage

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.

Examples

n_cst_groupBox   lnvo_groupBox
lnvo_groupBox    = CREATE n_cst_groupBox

lnvo_groupBox.of_register(dw_mine)

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

// Change the text of the 'Settings' groupBox to 'Other'
lnvo_groupBox.of_setText(ll_item, 'Other')

DESTROY lnvo_groupBox

See Also

Last edited Oct 17, 2016 at 2:39 PM by cjharris02892, version 1