ItemOpen()

Open a tree item in the Data Tree.

Usage

ItemOpen(item)

Parameters

item (tree-item)
The created item to be opened.

Return Value

None

Errors

  • The parent Data Tree must exist.
  • The tree item must be created before.

Description

This routine executes the open function of a created item properly and opens a tree item in the Data Tree. For example,
name = item.newChild()
nodeBfs = ROOT + RS + 'BODY_FORCE'
newItem = TreeItem( parent = item,
                     name = name,
                     tooltip = 'Set the body force parameters',
                     whatsthis = 'Open a panel to define the parameters\n'
                                  'for a body force\n',
                     helpURL = 'main.htm#body_force',
                     sort = FALSE,
                     popup = (( 'Open', cmdOpenBodyForce ),
                              ( 'Rename', cmdRename ),
                              ( 'Duplicate', cmdDuplicate ),
                              ( 'Delete', cmdDelete )),
                     click2 = 'Open',
                     path = nodeBfs )
ItemOpen( newItem )