%META:TOPICPARENT{name="OATDOCIndex"}%
---+ win.js
Creates windows.
%TOC%
---++ Objects
---+++ OAT.Win(options)
Creates a window. Its components are accessible via:
* *container*
* *content*
* *title* (all titlebar)
* *caption* (text in the titlebar)
* *status* Options can be following:
* *title* - title of the window
* *x* - x position (default0)
* *y* - y position (default0)
* *visibleButtons* - use letters cmMfr
* *c* - close
* *m* - minimize
* *M* - maximize
* *f* - flip
* *r* - resize
* *enabledButtons* - use letters cmMfr (as above)
* *outerWidth* - (default 350)
* *outerHeight* - int; false means CSS auto (default auto)
* *type* - See constants section. No need to specify when using object of the particular type. (defaultOAT.WinData.TYPE_AUTO)
* *template* - use only with type template, contains object with template specification (default false)
* *className* - additional class name for the window (default false)
---++ Constants
---+++ OAT.WindowData.TYPE_
Type of window to create
* OAT.WindowData.TYPE_MS - Redmond style like old-school Windows
* OAT.WindowData.TYPE_MAC - Apple Aqua style
* OAT.WindowData.TYPE_ROUND - window with rounded corners
* OAT.WindowData.TYPE_RECT - rectangular window
* OAT.WindowData.TYPE_ODS - OpenLink Data Spaces look
* OAT.WindowData.TYPE_AUTO - determines OS and uses appropriate type
* OAT.WindowData.TYPE_TEMPLATE - you can create your own look
---++ CSS Styles
See oat/styles/win*.css files.
CategoryDocumentation CategoryOAT CategoryOpenSource