"expandedStateName"

Saves/Returns the string name to which the last expanded view in the DP tree is saved.

Synopsis

setValue(string shape,"expandedStateName", string stateName);

getValue(string shape,"expandedStateName", string &stateName);

shape.expandedStateName(string stateName);

Parameters

Parameter Description
shape Name of the object
stateName Name of the string to which the last expanded view in the DP tree is saved.

Description

Saves/Returns the string name to which the last expanded view in the DP tree is saved.

If no string name was defined, the view in the DP tree is collapsed each time the DP tree is opened.

The string name is saved separately per user and computer depending on the used operating system (Windows: Registry; X11: file).

Example 1

Using the Property editor.

  1. Open the Property editor (see The Property Sheet) of the DpTreeView whose expanded last state should be saved.

  2. Go to the Extended tab.

  3. Enter a string for the expandedStateName attribute (e.g. "stateName").

  4. Save and start the panel containing the DpTreeView in the e.g. QuickTest module.

  5. Expand some DPs/DPEs.

  6. Close the QuickTest module.

  7. Open the QuickTest module again.

  8. The last expanded view is shown.

Example 2

Using the Initialize script of the DpTreeView.

  1. Open the Initialize script of the DpTreeView whose expanded last state should be saved.

  2. Add the following CTRL code:

main()
{
  this.expandedStateName("stateName");
}
  1. Save and close the script.

  2. Save and start the panel containing the DpTreeView in the e.g. QuickTest module.

  3. Expand some DPs/DPEs.

  4. Close the QuickTest module.

  5. Open the QuickTest module again.

  6. The last expanded view is shown.

Assignment

DpTreeView