PtGroup

PtGroup -- groups widgets and manages their geometry.

Synopsis

class PtGroup PtContainer
{
    group_flags;          // flag  (Pt_ARG_GROUP_FLAGS)    
    group_horz_align;     // unsigned short  (Pt_ARG_GROUP_HORZ_ALIGN)    
    group_orientation;    // unsigned short  (Pt_ARG_GROUP_ORIENTATION)    
    group_rows_cols;      // unsigned short  (Pt_ARG_GROUP_ROWS_COLS)    
    group_spacing;        // unsigned short  (Pt_ARG_GROUP_SPACING)    
    group_vert_align;     // unsigned short  (Pt_ARG_GROUP_VERT_ALIGN)    
}
		

Base Classes

PtWidget <-- PtBasic <-- PtContainer <-- PtGroup

Derived Classes

PtMenu, PtMenuBar

Description

This widget is an invisible container that groups widgets into columns, rows, or a matrix, and manages their geometry. It permits exclusive or group selection of widgets.

Note

For detailed information, please refer to PtGroup in the Photon documentation.

Instance Variables

group_flags

This instance variable controls the behavior of the group, and may be a combination of zero or more of the following flags:

Note

Among the next 4 flags, you should not set EQUAL_SIZE and STRETCH flags for the same direction.

group_horz_align

This instance variable specifies horizontal alignment of the group as a whole, and may have one of the following values:

group_orientation

This instance variable re-aligns child widgets into rows or columns, and may have one of the following values:

group_rows_cols

A number specifying the number of rows or columns that the children are arranged into, for the relevant group_orientation chosen.

group_spacing

A number specifying the number of pixels to separate each child of the group in both the x and y directions.

group_vert_align

This instance variable specifies vertical alignment of the group as a whole, and may have one of the following values:

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.