Introduced
4.0
Description
Adds a group to the layout. A group can be used to draw a box around related items, or as a way of arranging controls into columns. It is possible to nest groups.
Groups are represented in the layout with two special PPGItem objects, one for the beginning of the group and the other for the end. Hence to change a label on a group it would be possible to enumerate through the PPGItems to find the item associated with the beginning of the group and to modify the PPGItem.Label property.
Scripting Syntax
PPGLayout.AddGroup( [Label], [ShowFrame], [WidthPercentage] )
C# Syntax
PPGItem PPGLayout.AddGroup( String in_opt_Label, Boolean in_opt_ShowFrame, Int32 in_opt_width );
Parameters
|
Parameter |
Type |
Description |
|
Label |
When specified, the label is shown and a frame is drawn around the group. |
|
|
ShowFrame |
Flag whether to draw a frame around the items in the control. When a label is specified a frame is always drawn. (See siUIShowFrame in siPPGItemAttribute). Default Value: true |
|
|
WidthPercentage |
This parameter is only applicable if the group is part of a row. It describes how much of the horizontal space should be taken by this group. If not specified XSI uses its own heuristic to lay out the group. For example, it might look better to split two groups 30%/70%, rather than using even spacing, if the second group has wider controls than the first. |
Return Value
See Also
SOFTIMAGE|XSI v6.01