"setOpen"

Sets an item to open if open is TRUE and the item is expandable or to close if open is FALSE.

Synopsis

shape.setOpen(string Id, bool open);

Parameters

Parameter Description
shape Name of the object
id The ID of the item
open

TRUE = Sets item to open

FALSE = Sets item to close

Description

Sets an item to open if open is TRUE and the item is expandable or to close if open is FALSE.

Example

The following example sets the item "ENGINE " to open.

main()
{
  TREE1.setOpen("ENGINE",TRUE);
}

Assignment

Tree widget