Arbortext Command Language > Functions by Alphabetical Listing > dlgitem_collapse
  
dlgitem_collapse
dlgitem_collapse (window, dlgitem, listtag, row)
Collapses the list at the given point in the given list tag, within the dialog item dlgitem in window. If successful, this function returns a one (1). If the function fails, it returns a zero (0).
The window parameter is a window identifier. dlgitem is the value of the control's id attribute. The listtag parameter instructs the function to get the sublist for this list tag. The row parameter specifies which row of the sublist to collapse.
Notes
This function affects what is seen on the display; it has no effect on any data that is visible to the application.
Example
$top = dlgitem_get_listtag($win, "Hierarchy")
$ret = dlgitem_collapse($win, "Hierarchy", $top, 0)
Collapses the child of the first entry in the Hierarchy list.