Index | OAT homepage | OpenLink Software

# OATDOCwin

- OATDOCwin
- _ _ win.js
- _ _ _ _ Objects
- _ _ _ _ _ _ OAT.Win(options)
- _ _ _ _ Constants
- _ _ _ _ _ _ OAT.WindowData.TYPE_
- _ _ _ _ CSS Styles

## win.js

Creates windows.

### 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 (default `0` )
- `y` - y position (default `0` )
- `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. (default `OAT.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.

Copyright (C) 2005-2008 OpenLink Software