of_setEnabled

Description

Sets the enabled/disabled state of a groupBox.

Syntax

window/userObject level
of_setEnabled()
dataWindow level
of_setEnabled(Long item, Boolean switch)
of_setEnabled(String item, Boolean switch)

Parameter(s)

Name Type Description
item Long or String The name or index of the groupBox for which the enabled indicator is to be set. The name of the groupBox is the name the programmer gave when of_addgroupBox or of_replaceGroupBox was called. The name of the groupBox is also the text displayed for the groupBox. The index of the groupBox is the same as the value returned when of_addgroupBox or of_replaceGroupBox was called
switch Boolean Indicates the state to which the groupBox is to be set, TRUE = Enabled and FALSE = Disabled.

Return Value

None

Usage

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

Enable/Disable is achieved by switching the transparency of the picture of the item between 100% (enabled) and 50% (disabled). The text color is changed to disabledText/grayText for disabled.

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')

lnvo_groupBox.of_setEnabled(ll_item, FALSE)

Boolean          lb_isVisible
lb_isVisible     = lnvo_groupBox.of_isEnabled(ll_item)

DESTROY lnvo_groupBox

See Also

Last edited Sep 27, 2016 at 11:59 AM by cjharris02892, version 3