FA_Group_PageMode -- (01.00) [I..], BOOL

Function

Settings this attribute to TRUE makes the current group a page group. Page groups always display only one of their children, which one can be adjusted with the FA_Group_ActivePage attribute.

Imagine you have a preferences window with several different pages, e.g. preferences with object, frame, image, font, screen, keyboard and system prefs. Instead of one separate window for each group, you could put all pages into one page group and have a cycle gadget for page switching. This will make your program easier to use since the user won't have to handle a lot of windows. However, he will not be able to work with more than one page at the same time. Page groups are not limited in depth, children of a page group may of course be other page groups.

Sizes are computed as follows:

The minimum width/height of a page group is the maximum minimum width/height of all its children. The maximum width/height of a page group is the minimum maximum width/height of all its children.

When the maximum width/height of a child in a page group is smaller than the minimum width/height of the page group (since it contains another child with big minimum width/height), the child be centered.

Note

The title of each page is obtained from its child trought the FA_Group_PageTitle attribute.

See also

FA_Group_PageFont · FA_Group_PageStyle · FA_Group_ActivePage

FA_Group_PageFont -- (01.00) [I..], STRPTR

Function

Font specification for the titles of pages. Use this attriute wisely, because you will override $page-font.

See also

FA_Group_PageMode

FA_Group_PageAPreParse -- (01.00) [I..], STRPTR

Function

PreParse codes for active page title. Use this attribute wisely, you will override $page-preparse-active.

See also

FA_Group_PageMode

FA_Group_PageIPreParse -- (01.00) [I..], STRPTR

Function

PreParse codes for inactive page title. Use this attribute wisely, you will override $page-preparse-inactive.

See also

FA_Group_PageMode

FA_Group_ActivePage -- (01.00) [ISG], uint32

Special inputs

FV_Group_ActivePage_Prev
FV_Group_ActivePage_Next
FV_Group_ActivePage_Last
FV_Group_ActivePage_First

Function

Set (or get) the active page of a page group. Only this active page is displayed, all others are hidden.

The value may range from 0 (for the first child) to numchildren-1 (for the last child). Children are adressed in the order of creation :

PageGroup,
    Child, Page_0_Object,
    Child, Page_1_Object,
    Child, Page_2_Object,
    Child, Page_3_Object,
    End;

See also

FA_Group_PageMode