Class of table for placement widgets.
UIGrid([<o>],<grow>,<gcol>,[<spacing>],[<padding>]) --> UIGrid object
ADD | Add widget to table. |
SETALIGNMENT | Set alignment of widgets in table. |
SETEQUALSIZEISEQUAL | Set equals cells size for widget placement. |
SETPADDING | Set table border width. |
SETSPACING | Set space between widget in table. |
UIGRID | Constructor. Create table for placement widgets. |
table := UIGrid( , 2, 2 ) label := UILabel( "Label:" ) ed_box := UIEdit() table:add( label, "1,1" ) table:add( ed_box, "1,2", .T. )
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Add widget to table.
add(<o>,<pos>,[<h_expand>],[<v_expand>])
<o> | - Widget object. Widget inserted in table. |
<pos> | - String. Address of cell or cell range for inserted widget. Number of row (row range) is separated from number of column (column range) by comma. Range is defined through hyphen. Numbering of rows and columns is begun from 1 (top and left side res |
pectively). For example, widget place in first row and columns 2..4 is defined as string: "1,2-4". | |
<h_expand> | - Boolean. Possibility of expand widget horizontally on window size changed. |
<v_expand> | - Boolean. Possibility of expand widget vertically on window size changed. |
Returns NIL.
Set alignment of widgets in table.
setAlignment(<align>,<valign>) <align> - Number. Horizontal alignment of widgets. Possible values: <itemizedlist mark="bullet"> <listitem><para><constant>ALIGN_LEFT</constant> — aligns with the left edge (default)</para></listitem> <listitem><para><constant>ALIGN_CENTER</constant> — centers horizontally</para></listitem> <listitem><para><constant>ALIGN_RIGHT</constant> — aligns with the right edge</para></listitem> </itemizedlist> <valign> - Number. Vertical alignment of widgets. Possible values: <itemizedlist mark="bullet"> <listitem><para><constant>ALIGN_TOP</constant> — aligns with the top (default)</para></listitem> <listitem><para><constant>ALIGN_MIDDLE</constant> — centers vertically</para></listitem> <listitem><para><constant>ALIGN_BOTTOM</constant> — aligns with the bottom</para></listitem> </itemizedlist>
No arguments
Returns NIL.
Set equals cells size for widget placement.
setEqualSize(<isEqual>)
Returns NIL.
Set table border width.
setPadding(<space>)
Returns NIL.
Set space between widget in table.
setSpacing(<space>)
Returns NIL.
Constructor. Create table for placement widgets.
UIGrid([<o>],<grow>,<gcol>,[<spacing>],[<padding>]) --> UIGrid object
Returns NIL.