DEFINE WINDOW
  

Creates a Window definition.

SYNTAX

Standard Window:

DEFINE WINDOW <WindowName>
[ AT <
nRow> ,<nCol> ]
[ ROW <
nRow> ]
[ COL
<nCol> ]
[ WIDTH <
nWindth> ]
[ HEIGHT <
nHeight> ]
[ CLIENTAREA <nClientWidth> , <nClientHeight> ]
[ VIRTUAL WIDTH <
nVirtualWindth> ]
[ VIRTUAL HEIGHT <
nVirtualHeight> ]
[ TITLE <
cTitle> ]
[ ICON <
cIconName> ]
[ WINDOWTYPE STANDARD ]

[ MAIN | CHILD | MDI | PANEL ] |
[ WINDOWTYPE MAIN | CHILD | MIDI | PANEL]
[ NOSHOW ]
[ TOPMOST ]
[ PALETTE ]
[ NOAUTORELEASE ]
[ NOMINIMIZE ]
[ NOMAXIMIZE ]
[ NOSIZE ]
[ NOSYSMENU ]
[ NOCAPTION ]
[ CURSOR <
CursorName> ]
[ ON INIT<
InitProcedureName> | <bBlock> ]
[ ON RELEASE <
ReleaseProcedureName> | <bBlock> ]
[ ON INTERACTIVECLOSE <
InteractiveCloseProcedureName> | <bBlock> ]
[ ON MOUSECLICK<
MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG<
MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE<
MouseMoveProcedureName> | <bBlock> ]
[ ON MOVE<
MoveProcedureName> | <bBlock> ]
[ ON SIZE<
WindowSizeProcedureName> | <bBlock> ]
[ ON MAXIMIZE <
WindowMaximizeProcedureName> | <bBlock> ]
[ ON MINIMIZE <
WindowMinimizeProcedureName> | <bBlock> ]
[ ON RESTORE <
WindowRestoreProcedureName> | <bBlock> ]
[ ON PAINT<
WindowPaintProcedureName> | <bBlock> ]
[ ON DROPFILES {|
aFiles| TakeDrop(aFiles)} ]
[ BACKCOLOR <
anBackColor> ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ NOTIFYICON <
cNotifyIconName> ]
[ NOTIFYTOOLTIP <
cNotifyTooltip> ]
[ ON NOTIFYCLICK <
NotifyClickProcedure> | <bBlock> ]
[ ON NOTIFYDBLCLICK <
NotifyDblClick>  | <bBlock>] ;
[ ON NOTIFYBALLOONCLICK <
NotifyBalloonClick> | <bBlock> ] ;
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <
ProcedureName> | <bBlock> ]
[ ON SCROLLUP <
ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <
ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <
ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <
ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <
ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <
ProcedureName> | <bBlock> ]
[ HELPBUTTON ]

... Control Definitions...

END WINDOW

Modal Window:

DEFINE WINDOW <WindowName>
[ AT <
nRow> ,<nCol> ]
[ ROW <
nRow> ]
[ COL <
nCol> ]
WIDTH <nWindth>
HEIGHT <
nHeight>
[ CLIENTAREA <
nClientWidth> , <nClientHeight> ]
[ VIRTUAL WIDTH <
nVirtualWindth> ]
[ VIRTUAL HEIGHT <
nVirtualHeight> ]
[ TITLE <
cTitle> ]
[ ICON <
cIconName> ]
MODAL | WINDOWTYPE MODAL
[ NOSHOW ]
[ NOAUTORELEASE ]
[ NOSIZE ]
[ NOSYSMENU ]
[ NOCAPTION ]
[ CURSOR <
CursorName> ]
[ ON INIT<
InitProcedureName> | <bBlock> ]
[ ON RELEASE<
ReleaseProcedureName> | <bBlock> ]
[ ON INTERACTIVECLOSE <
InteractiveCloseProcedureName> | <bBlock> ]
[ ON MOUSECLICK<
MouseClickProcedureName> | <bBlock> ]
[ ON MOUSEDRAG<
MouseDragProcedureName> | <bBlock> ]
[ ON MOUSEMOVE<
MouseMoveProcedureName> | <bBlock> ]
[ ON MOVE<
MoveProcedureName> | <bBlock> ]
[ ON SIZE <
WindowSizeProcedureName> | <bBlock> ]
[ ON PAINT<
WindowPaintProcedureName> | <bBlock> ]
[ BACKCOLOR <
anBackColor> ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ ON GOTFOCUS <
ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <
ProcedureName> | <bBlock> ]
[ ON SCROLLUP <
ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <
ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <
ProcedureName> | <bBlock> ]
[ ON SCROLLRIGHT <
ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <
ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <
ProcedureName> | <bBlock> ]
[ HELPBUTTON ]

... Control Definitions...

END WINDOW

SplitChild Windows:

DEFINE WINDOW <WindowName>
WIDTH <nWindth>
HEIGHT <nHeight>
[ VIRTUAL WIDTH <nVirtualWindth> ]
[ VIRTUAL HEIGHT <nVirtualHeight> ]
[ TITLE <cTitle> ]
SPLITCHILD | WINDOWTYPE SPLITCHILD
[ NOCAPTION ]
[ CURSOR <CursorName> ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ GRIPPERTEXT ]
[ BREAK ]
[ FOCUSED ]
[ ON GOTFOCUS <ProcedureName> | <bBlock> ]
[ ON LOSTFOCUS <ProcedureName> | <bBlock> ]
[ ON SCROLLUP <ProcedureName> | <bBlock> ]
[ ON SCROLLDOWN <ProcedureName> | <bBlock> ]
[ ON SCROLLLEFT <Proce
dureName> | <bBlock> ]
[ ON SCROLLRIGHT <
ProcedureName> | <bBlock> ]
[ ON HSCROLLBOX <
ProcedureName> | <bBlock> ]
[ ON VSCROLLBOX <
ProcedureName> | <bBlock> ]

... Control Definitions...

END WINDOW

Template declaration

DEFINE WINDOW TEMPLATE .<WindowName>..[ MDICHILD ].
      ....
      other options
      ....

END WINDOWS

WINDOW PROPERTIES:

·     Row
·     Col
·     Width
·     Height
·     Title
·     TitleBar
·     BackColor
·     NotifyIcon
·     NotifyToolTip
·     FocusedControl
·     MinWidth
·     MaxWidth
·     MinButton
·     MaxButton
·     MinHeight
·     MaxHeight
·     SysMenu
·     Sizable
·     Topmost
·     Cargo
·     Cursor (R)
·     Name(R)

WINDOW METHODS:

·     Show
·     Hide
·     Center
·     Maximize
·     Minimize
·     Activate
·     Restore
·     Release
·     SetFocus
·     SaveAs

Toolbar's & SplitBox's parent window can't be a 'Virtual Dimensioned' window (use 'Virtual Dimensioned' splitchild's instead)