of_setCollapsed

Description

Sets the collapsed/expanded state of a group.

Syntax

of_setCollapsed(Long group, Boolean switch)
of_setCollapsed(String group, Boolean switch)

Parameter(s)

Name Type Description
group Long or String The name or index of the group for which the collapsed indicator is to be set. The text of the group is the text the programmer gave when of_addGroup was called or when of_setText was last called for the group. The index of the group is the same as the value returned when of_addGroup was called.
switch Boolean Indicates the state to which the item is to be set, TRUE = Collapsed and FALSE = Expanded.

Return Value

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

Usage

There are no special usage notes.

Examples

of_setCollapsed('File', FALSE)

Long                   ll_group
ll_group               of_addGroup('Edit', '', '')

of_setCollapsed(ll_group, TRUE)

See Also

Last edited Sep 24, 2016 at 4:02 PM by cjharris02892, version 8