simplegrid
Creates a grid of fixed-sized cells. All cells in a simplegrid control are of the same size. Child components are laid out left-to-right, top-down and are sized to fill the cell. If more control over layout is required, the table container should be used instead.
Syntax
<simplegrid container attributes>
<component component attributes> </component>
<component component attributes> </component>
<component component attributes> </component>
. . .
</simplegrid>
Container Attributes
In addition to General Attributes, the following attributes may be specified:
Attribute |
Values |
Restrictions |
Description |
rows |
Integer |
|
Specifies the number of rows in the grid |
cols |
Integer |
|
Specified the number of columns in the grid |
Child Component Attributes
See General Attributes. There are no additional attributes for child components.
Example
The following example creates a 2 row x 3 column grid, with buttons 1, 2, 3 on the top row and buttons 4, 5, 6 on the bottom row. Each cell is 100x100 pixels.
<simplegrid left="16" top="16" height="200" width="300" rows="2" cols="3">
<button buttontype="push" name="1"/>
<button buttontype="push" name="2"/>
<button buttontype="push" name="3"/>
<button buttontype="push" name="4"/>
<button buttontype="push" name="5"/>
<button buttontype="push" name="6"/>
</simplegrid>