Class of separate window.
UIWindow([<caption>],<parent>,[<name>],[<close>],[<resizeable>]) --> UIWindow object
CHILDCLOSE | Close current child window. |
CHILDCLOSEALL | Close all child windows. |
CLOSE | Close window. |
DIALOGBOX | Show dialog window with message. |
GETGEOMETRY | Get size and position of window. |
GETOBJ | Get object with filled fields from window widgets contents. |
GETVALUES | Get array of values from window widgets. |
ISCHANGED | Return true if any field in window was changed. |
RETURN | Send value to window which initiated creation of this window. |
SETCAPTION | Set new window caption. |
SETDEFAULT | Set button as default in window. |
SETFOCUS | Set focus to specified widget. |
SETGEOMETRY | Change size and/or position of window. |
SETICON | Set icon for the window. |
SETID | Set object identifier changed in this window. |
SETKEYEVENT | Set action to shortcut in the window. |
SETMDI | Create area for child window placement. This method must be call after placement of menu. toolbar(s), statusbar and/or other fixed element(s) into window. |
SETNAME | Set name for widget. |
SETOBJ | Fill widgets by object fields. |
SETPANELS | Attach to window menubar, toolbar and/or statusbar. |
SETPLACEMENT | Set window at center of the screen. |
SETVALUES | Fill widget values from array. |
SHOW | Show window. |
UNSETKEYEVENT | Unset action from shortcut in the window. |
VAL | Get widget value by its name. |
win := UIWindow("Dialog") win:setPlacement( .T. ) win:show()
Andrey Cherepanov <<skull@eas.lrn.ru>>
No dependies of platform.
Close current child window.
childClose()
No arguments
Returns NIL.
Close all child windows.
childCloseAll()
No arguments
Returns NIL.
Close window.
close()
No arguments
Returns NIL.
Show dialog window with message.
dialogBox(<caption>,<text>,[<buttons>],[<buttonNames>],[<action>])
<caption> | - String. Caption of dialog. |
<text> | - String. Text of message. |
<buttons> | - String. In the string defined array of buttons in message window. For example, "'&Save','&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. |
Returns NIL.
Get size and position of window.
getGeometry() --> <aRect>
No arguments
Array of elements: width, height, x, y in pixels respectively.
Get object with filled fields from window widgets contents.
getObj() --> <object>
No arguments
Array of widget values.
Get array of values from window widgets.
getValues() --> <array>
No arguments
Array of values from window widgets. Each element is array consisted from two elements: string with widget name and string with its value.
Return true if any field in window was changed.
isChanged() --> <bChanged>
No arguments
Boolean value. If value is true, one or more window fields was/were changed. False is mean that all fields are unchanged.
Send value to window which initiated creation of this window.
return(<val>)
Returns NIL.
Set new window caption.
setCaption(<caption>)
Returns NIL.
Set button as default in window.
setDefault()
Returns NIL.
Set focus to specified widget.
setFocus(<obj>)
Returns NIL.
Change size and/or position of window.
setGeometry(<geom>)
Returns NIL.
Set icon for the window.
setIcon(<pic>)
Returns NIL.
Set object identifier changed in this window.
setId(<id>)
Returns NIL.
Set action to shortcut in the window.
setKeyEvent(<cKey>,<action>)
Returns NIL.
Create area for child window placement. This method must be call after placement of menu. toolbar(s), statusbar and/or other fixed element(s) into window.
setMDI()
No arguments
Returns NIL.
Set name for widget.
setName(<name>,<o>) --> <o>
Named widget object.
Fill widgets by object fields.
setObj(<obj>)
Returns NIL.
Attach to window menubar, toolbar and/or statusbar.
setPanels([<menu>],[<toolBar>],[<statusBar>])
<menu> | - Object UIMenu. Menubar. |
<toolBar> | - Object UIToolBar. Toolbar. |
<statusBar> | - Object UIStatusBar. Statusbar. |
Returns NIL.
Set window at center of the screen.
setPlacement(<centered>)
Returns NIL.
Fill widget values from array.
setValues(<values>)
Returns NIL.
Show window.
show()
No arguments
Returns NIL.
Unset action from shortcut in the window.
unSetKeyEvent(<cKey>)
Returns NIL.
Get widget value by its name.
val(<name>)
Returns NIL.