$CLASSNAME$
	UIChildWindow
$SUMMARY$
	Class UIChildWindow.
$LANG_RU$
	 UIChildWindow.
$ABOUT$
	Class of child window.
$LANG_RU$
	  .
$SYNTAX$
	UIChildWindow([<caption>],<parent>,[<name>])	--> UIChildWindow object
$LANG_RU$
	UIChildWindow([<caption>],<parent>,[<name>])	-->  UIChildWindow
$ATTRIBUTES$
	<className>	- Class name. Value should be "UIChildWindow".
	<name>		- Window name defined in constructor.
	<userSpace>	- Layout for widget placement. <link linkend="classuivbox">UIVBox</link> object.
$LANG_RU$
	<className>	-  . : "UIChildWindow".
	<name>		-     ,   .
	<userSpace>	-   .  <link linkend="classuivbox">UIVBox</link>.

$METHODNAME$
	UIChildWindow()
$SUMMARY$
	Constructor. Create child window.
$LANG_RU$
	.   .
$SYNTAX$
	UIChildWindow([<caption>],<parent>,[<name>])
$ARGUMENTS$
	<caption> 	- String. Caption of child window.
	<parent>	- Window object. Parent window which should be contains child window. Before create first child window for this parent window must be called method setMDI().
	<name> 		- String. Window name.
$LANG_RU$
	<caption> 	- .   .
	<parent>	-  . ,     .             setMDI().
	<name> 		- .     .

$METHODNAME$
	add()
$SUMMARY$
	Add widget to child window from top to bottom.
$LANG_RU$
	     .
$SYNTAX$
	add(<o>,[<expand>],[<fill>],[<padding>])
$ARGUMENTS$
	<o>		- Widget object. Object of added widget.
	<expand> 	- Boolean. Expand widget on window resize.
	<fill>		- Boolean. Strain widget to maximum free space in child window.
	<padding> 	- Number. Set indent between widget margin and margin of cell in child window.
$LANG_RU$
	<o>		-  .   .
	<expand> 	-  .      .
	<fill>		-  .         .
	<padding> 	- .         .
$ENDMETHOD$

$METHODNAME$
	addEnd()
$SUMMARY$
	Add widget to child window from bottom to top.
$LANG_RU$
	     .
$SYNTAX$
	addEnd(<o>,[<expand>],[<fill>],[<padding>])
$ARGUMENTS$
	<o>		- Widget object. Object of added widget.
	<expand> 	- Boolean. Expand widget on window resize.
	<fill>		- Boolean. Strain widget to maximum free space in child window.
	<padding> 	- Number. Set indent between widget margin and margin of cell in child window.
$LANG_RU$
	<o>		-  .   .
	<expand> 	-  .      .
	<fill>		-  .         .
	<padding> 	- .         .
$ENDMETHOD$

$METHODNAME$
	close()
$SUMMARY$
	Close child window.
$LANG_RU$
	  .
$SYNTAX$
	close()
$ENDMETHOD$

$METHODNAME$
	setObj()
$SUMMARY$
	Fill widgets by object fields.
$LANG_RU$
	      .
$SYNTAX$
	setObj(<obj>)
$ARGUMENTS$
	<obj> - Object. Object contained fields with data.
$LANG_RU$
	<obj> - . ,    .
$ENDMETHOD$

$METHODNAME$
	getObj()
$SUMMARY$
	Get object with filled fields from window widgets contents.
$LANG_RU$
	 ,       .
$SYNTAX$
	getObj()	--> <object>
$RETURNS$
	Array of widget values.
$LANG_RU$
	,       .
$ENDMETHOD$

$METHODNAME$
	dialogBox()
$SUMMARY$
	Show dialog window with message.
$LANG_RU$
	  .
$SYNTAX$
	dialogBox(<caption>,<text>,[<buttons>],[<buttonNames>],[<action>])
$ARGUMENTS$
	<caption>	- String. Caption of dialog.
	<text>		- String. Text of message.
	<buttons> 	- String. In the string defined array of buttons in message window. For example, "'&amp;Save','&amp;Cancel'". If parameter isn't defined, only one button 'OK' will be shown.
	<buttonNames> 	- String. In the string defined array of name for button. For example, "'SAVE','CANCEL'".
	<action>	- Code block. Code block which is executed on any defined button on dialog window. As parameters of this call name of pressed button is used.
$LANG_RU$
	<caption>	- .   .
	<text>		- .    .
	<buttons> 	- .   . , "'&amp;','&amp;'".    ,     'OK'.
	<buttonNames> 	- . C  ͣ . , "'SAVE','CANCEL'".
	<action>	-  .  ,        .         .
$ENDMETHOD$

$METHODNAME$
	show()
$SUMMARY$
	Show window.
$LANG_RU$
	 .
$SYNTAX$
	show()
$ENDMETHOD$

$METHODNAME$
	setPanels()
$SUMMARY$
	Attach to window menubar, toolbar and/or statusbar.
$LANG_RU$
	   ,     .
$SYNTAX$
	setPanels([<menu>],[<toolBar>],[<statusBar>])
$ARGUMENTS$
	<menu>		- Object <link linkend="classuimenu">UIMenu</link>. Menubar.
	<toolBar> 	- Object <link linkend="classuitoolbar">UIToolBar</link>. Toolbar.
	<statusBar> 	- Object <link linkend="classuistatusbar">UIStatusBar</link>. Statusbar.
$LANG_RU$
	<menu>		-  <link linkend="classuimenu">UIMenu</link>. .
	<toolBar> 	-  <link linkend="classuitoolbar">UIToolBar</link>.  .
	<statusBar> 	-  <link linkend="classuistatusbar">UIStatusBar</link>.  .
$ENDMETHOD$

$METHODNAME$
	setName()
$SUMMARY$
	Set name for widget.
$LANG_RU$
	   .
$SYNTAX$
	setName(<name>,<o>) --> <o>
$ARGUMENTS$
	<name>		- String. Field name.
	<o>		- Object. Widget object.
$LANG_RU$
	<name>		- .  .
	<o>		- .  .
$RETURNS$
	Named widget object.
$LANG_RU$
	  .
$ENDMETHOD$

$METHODNAME$
	val()
$SUMMARY$
	Get widget value by its name.
$LANG_RU$
	     .
$SYNTAX$
	val(<name>)
$ARGUMENTS$
	<name>		- String. Widget name. Setting up name for widget should be done by method setName().
$LANG_RU$
	<name>		- .  .  ͣ     setName().
$ENDMETHOD$

$METHODNAME$
	setValues()
$SUMMARY$
	Fill widget values from array.
$LANG_RU$
	     .
$SYNTAX$
	setValues(<values>)
$ARGUMENTS$
	<values>	- Array. Array of named values. Each element must be array consisted from two elements: string with widget name and string with its value.
$LANG_RU$
	<values>	- .   .     ,    :      .
$ENDMETHOD$

$METHODNAME$
	getValues()
$SUMMARY$
	Get array of values from window widgets.
$LANG_RU$
	     .
$SYNTAX$
	getValues()	--> <array>
$RETURNS$
	Array of values from window widgets. Each element is array consisted from two elements: string with widget name and string with its value.
$LANG_RU$
	    .     ,    :      .
$ENDMETHOD$

$METHODNAME$
	return()
$SUMMARY$
	Send value to window which initiated creation of this window.
$LANG_RU$
	 ̣   ,    .
$SYNTAX$
	return(<val>)
$ARGUMENTS$
	<val>		- Any type. Value transmitted via return function.
$LANG_RU$
	<val>		-   . ,    .
$ENDMETHOD$

$METHODNAME$
	isChanged()
$SUMMARY$
	Return true if any field in window was changed.
$LANG_RU$
	  ,          .
$SYNTAX$
	isChanged()	--> <bChanged>
$RETURNS$
	Boolean value. If value is true, one or more window fields was/were changed. False is mean that all fields are unchanged.
$LANG_RU$
	 .   ,       .         .
$ENDMETHOD$

$METHODNAME$
	setId()
$SUMMARY$
	Set object identifier changed in this window.
$LANG_RU$
	  ,   .
$SYNTAX$
	setId(<id>)
$ARGUMENTS$
	<id>		- String. Object identifier changed in window.
$LANG_RU$
	<id>		- .  ,   .
$ENDMETHOD$

$METHODNAME$
	setCaption()
$SUMMARY$
	Set new child window caption.
$LANG_RU$
	   .
$SYNTAX$
	setCaption(<caption>)
$ARGUMENTS$
	<caption>	- String. Text of child window title.
$LANG_RU$
	<caption>	- .    .
$ENDMETHOD$

$METHODNAME$
	setFocus()
$SUMMARY$
	Set focus to specified widget.
$LANG_RU$
	     .
$SYNTAX$
	setFocus(<obj>)
$ARGUMENTS$
	<obj>		- Widget. Focused widget.
$LANG_RU$
	<obj>		- . ,    .
$ENDMETHOD$

$EXAMPLES$
	win := UIMainWindow("Main window")
	win:setMDI()
	childWindow := UIChildWindow("Child window", win, "child")

	childWindow:show()
	win:show()

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