Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GroupExpanded property allows you to programmatically expand and contract a group. If the control's Behavior property is set to "Explorer", then this property can be true or false for any group since all groups can be expanded or contacted independently. If, however, the Behavior property is set to "List" or "Toolbox" then only one group can be expanded at a time. In this case, expanding one group will set all other groups' GroupExpanded properties to 0.

While the GroupEnabled and GroupExpandable properties prevent the user from expanding and contracting groups, this property will always allow you to programmatically do so.

...

Code Block
// Contract a group 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.GroupExpanded[1]", 0) 

// Expand all groups 
Set_Property(@Window:".OLE_SHORTCUT", "OLE.GroupExpanded[All]", 1)

See Also

GroupEnabledGroupExpandableBehavior