$CLASSNAME$
	UIGrid
$SUMMARY$
	Class UIGrid
$LANG_RU$
	 UIGrid
$ABOUT$
	Class of grid for placement widgets.
$LANG_RU$
	   .
$SYNTAX$
	UIGrid([<o>],<grow>,<gcol>,[<spacing>],[<padding>])	--> UIGrid object
$LANG_RU$
	UIGrid([<o>],<grow>,<gcol>,[<spacing>],[<padding>])	-->  UIGrid
$ATTRIBUTES$
	<className>	- Class name. Value should be "UIGrid".
$LANG_RU$
	<className>	-  . : "UIGrid".

$METHODNAME$
	UIGrid()
$SUMMARY$
	Constructor. Create grid for placement widgets.
$LANG_RU$
	.    .
$SYNTAX$
	UIGrid([<o>],<grow>,<gcol>,[<spacing>],[<padding>])	--> UIGrid object
$ARGUMENTS$
	<o>		- Widget object. Widget in which grid is inserted.
	<grow>		- Number. Number of rows in grid.
	<gcol>		- Number. Number of columns in grid.
	<spacing>	- Number. Space between grid cells in pixels (default is 0).
	<padding>	- Number. Space between widget and cell border in pixels (default is 2).
$LANG_RU$
	<o>		-  . ,    .
	<grow>		- .    .
	<gcol>		- .    .
	<spacing>	- .        (  0).
	<padding>	- .          (  2).
$ENDMETHOD$

$METHODNAME$
	add()
$SUMMARY$
	Add widget to grid.
$LANG_RU$
	   .
$SYNTAX$
	add(<o>,<pos>,[<h_expand>],[<v_expand>])
$ARGUMENTS$
	<o>		- Widget object. Widget inserted in grid.
	<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 respectively). 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.
$LANG_RU$
	<o>		-  . ,   .
	<pos>		- C.        .  /     /  .    .    c 1   ,       1   . ,        2..4  : "1,2-4".
	<h_expand>	-  .         .
	<v_expand>	-  .         .
$ENDMETHOD$

$METHODNAME$
	setSpacing()
$SUMMARY$
	Set space between widgets in grid.
$LANG_RU$
	     .
$SYNTAX$
	setSpacing(<space>)
$ARGUMENTS$
	<space>		- Number. Space between widgets in pixels.
$LANG_RU$
	<space>		- .       .
$ENDMETHOD$

$METHODNAME$
	setPadding()
$SUMMARY$
	Set grid border width.
$LANG_RU$
	   .
$SYNTAX$
	setPadding(<space>)
$ARGUMENTS$
	<space>		- Number. Width of grid border in pixels.
$LANG_RU$
	<space>		- .     .
$ENDMETHOD$

$METHODNAME$
	setAlignment()
$SUMMARY$
	Set alignment of widgets in grid.
$LANG_RU$
	    .
$SYNTAX$
	setAlignment(<align>,<valign>)
$ARGUMENTS$
	<align>		- Number. Horizontal alignment of widget. Possible values: <itemizedlist mark="bullet"><listitem><command>ALIGN_LEFT</command> &mdash; aligns with the left edge 
	(default)</listitem><listitem><command>ALIGN_CENTER</command> &mdash; centers 
	horizontally</listitem><listitem><command>ALIGN_RIGHT</command> &mdash; aligns with the right 
	edge</listitem></itemizedlist>
	<valign>	- Number. Vertical alignment of widget. Possible values: <itemizedlist mark="bullet"><listitem><command>ALIGN_TOP</command> &mdash; aligns with the top 
	(default)</listitem><listitem><command>ALIGN_MIDDLE</command> &mdash; centers 
	vertically</listitem><listitem><command>ALIGN_BOTTOM</command> &mdash; aligns with the 
	bottom</listitem></itemizedlist>
$LANG_RU$
	<align>		- .   . : <itemizedlist mark="bullet"><listitem><command>ALIGN_LEFT</command> &mdash;     
	(  )</listitem><listitem><command>ALIGN_CENTER</command> &mdash;   
	</listitem><listitem><command>ALIGN_RIGHT</command> &mdash;    
	</listitem></itemizedlist>
	<valign>	- .   . : <itemizedlist mark="bullet"><listitem><command>ALIGN_TOP</command> &mdash;     
	(  )</listitem><listitem><command>ALIGN_MIDDLE</command> &mdash;   
	</listitem><listitem><command>ALIGN_BOTTOM</command> &mdash;    
	</listitem></itemizedlist>
$ENDMETHOD$

$METHODNAME$
	setEqualSize(isEqual)
$SUMMARY$
	Set equals cells size for widget placement.
$LANG_RU$
	        .
$SYNTAX$
	setEqualSize(<isEqual>)
$ARGUMENTS$
	<isEqual>	- Boolean. Flag for equal cells size in grid.
$LANG_RU$
	<isEqual>	-  .        .
$ENDMETHOD$

$EXAMPLES$
	grid  := UIGrid( , 2, 2 )
	label  := UILabel( "Label:" )
	ed_box := UIEdit()
	grid:add( label, "1,1" )
	grid:add( ed_box, "1,2", .T. )

$PLATFORMS$
	No dependies of platform.
$LANG_RU$
	   .
$SEEALSO$
$AUTHOR$
	Andrey Cherepanov <skull@eas.lrn.ru>
$LANG_RU$
	  <skull@eas.lrn.ru>
$LASTDATE$
