Class UIDOCUMENT

Name

UIDOCUMENT  --  Class for document window. It inherits properties and methods of class UIChildWindow.

Synopsis

 UIDocument([<caption>],<parent>,[<name>])	--> UIDocument object
 

Description

Class UIDocument

Attributes

<className> - Class name. Value should be "UIDocument".
<actions> - Button bar. Type is UIButtonBar.
<userSpace> - Scrolled region for widget placement. UIVBox object.

Methods

UIDOCUMENT Constructor. Create child window with button bar at bottom and scrolled region for widget placement.

Method UIDOCUMENT:UIDOCUMENT()

 UIDocument([<caption>],<parent>,[<name>])	--> UIDocument object

Example:

 /* Create main window and document window */
 win := UIMainWindow("Main window")
 win:setMDI()
 docWindow := UIDocument("Document", win, "doc")
 
 /* Add edit field and button for close document window */
 docWindow:userSpace:add(UIEdit())
 docWindow:actions:add(UIButton(, "&Close", {|| docWindow:close() } )))
 
 /* Show these windows */
 docWindow:show()
 win:show()

Platforms

No dependies of platform.