## WorkShop Visual Replay Command Syntax - Widget Hierarchy Analysis

#### Keywords

- tree - produce recursive listing of current widget hierarchy
- dump - show resources assigned to widget
- snapshot - produce recursive listing of current widget hierarchy and the resources assigned to each widget

#### Synopsis

        tree widget
        dump widget
        snapshot widget

#### Inputs

- widget the name of a widget

#### Description

The tree, dump and snapshot commands allow you to analyze the structure of the widgets within an application interface and the values of resources assigned to those widgets. The results from the analysis are displayed on standard error.

tree gives a recursive listing of widget names in the widget hierarchy from the nominated widget.

dump displays the resource settings of the nominated widget.

snapshot displays the resource settings of the nominated widget and all other widgets in the widget hierarchy from the nominated widget.

#### Example

The following command displays the resources allocated to the button1 widget:

        in ApplicationShell
    	dump button1

Part of the example output is shown below:

    button1():
      Boolean ancestorSensitive:true
      HorizontalDimension width:58
      VerticalDimension height:22
      Pixel background:color('black')
      Pixel foreground:color('#72729F9FFFFF')
      HorizontalDimension highlightThickness:1
      Pixel highlightColor:color('black')
      XmString labelString:'Button A'
      Pixel armColor:color('red')

The next command displays the widget hierarchy from the form1 widget:

        in ApplicationShell
    	tree form1

Part of the example output is shown below:

    rowcol1():
      buttonA():
      button2():
    address_area():
      label1():
      text1():

#### Notes

WorkShop Visual Replay assigns a unique name to widgets which share a common widget name within a shell (e.g., HorScrollBar#1, HorScrollBar#2, Apply#3, Apply#5, etc.). Where the replay name is different from the actual widget name, it is given within the brackets.

See also:

- WorkShop Visual Replay Command Syntax