Next Previous Up Top Contents Index

7.2 The class hierarchy for DUIM-Layouts

7.2.2 Subclasses of <layout>

The subclasses of <layout> are shown in Table 7.2.

Table 7.2 Subclasses of the <layout> class

<layout>

<row-layout>

<column-layout>

<fixed-layout>

<pinboard-layout>

<stack-layout>

<table-layout>

<grid-layout>

The layouts provided by DUIM fall roughly into two categories:

The classes of layout available are as follows:

<column-layout>

This class lays out its children in a single column, with all its children left-aligned by default.
<row-layout>

This class lays out its children in a single row.

<stack-layout>

This class lays out its children one on top of another, aligned at the top left corner by default. It is specifically for windows that contain a number of layouts, only one of which is visible at any one time, such as property sheets, tab controls, or wizards.

<table-layout>

This class lays out its children in a table, according to a specified number of rows and columns.

<pinboard-layout>

This does not constrain the position of its children in any way. It is up to you to position each child individually, like pins on a pinboard.
<fixed-layout>

This class is like <pinboard-layout>, in that you must specify the position of each child. Unlike <pinboard-layout>, however, you must also specify the size of each child.

In addition to the basic types of layout described above, a subclass of <table-layout> is provided, as follows:

<grid-layout>

This is a specialized version of <table-layout>, in which all the cells in the table are forced to be the same size.

Figure 7.1 Column, row, and pinboard layouts


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index