[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Window Commands
--------------------------------------------------------------------------------

 Creating a new Window       DEFINE WINDOW <oWnd> ;
                                [ FROM <nTop>, <nLeft> TO <nBottom>, <nRight> ] ;
                                [ TITLE <cTitle> ] ;
                                [ STYLE <nStyle> ] ;
                                [ MENU <oMenu> ] ;
                                [ BRUSH <oBrush> ] ;
                                [ ICON <oIcon> ] ;
                                [ MDI ]


 <oWnd>          A reference to the Window Object.

 <nTop>          Window coordinates on screen. We simulate text coordinates.
 <nLeft>
 <nBottom>
 <nRight>

 <cTitle>        The title of the Window.

 <nStyle>        A numeric value which indicates a special API style. Just
                 for advanced FiveWin users.

 <oMenu>         An already created Menu Object. Use MENU ... ENDMENU inside
                 a function as in examples. This parameter is optional.

 <oBrush>        An already created Brush Object to be used as background
                 of the Window. Use DEFINE BRUSH ... to create it. This
                 parameter is optional.

 <oIcon>         An already created Icon Object to be used by the Window.
                 Use DEFINE ICON ... to create it. This parameter is optional.


 Activating a Window         ACTIVATE WINDOW <oWnd> ;
                                [ ICONIZED | NORMAL | MAXIMIZED ] ;
                                [ ON LEFT CLICK <uLClick> ] ;
                                [ ON RIGHT CLICK <uRClick> ] ;
                                [ ON MOVE <uMove> ] ;
                                [ ON RESIZE <uResize> ] ;
                                [ ON PAINT <uPaint> ] ;
                                [ ON KEYDOWN <uKeyDown> ] ;
                                [ ON INIT <uInit> ]

 <oWnd>          A reference to the Window Object.

 <uLClick>       An action to be performed when the left button of the mouse
                 is clicked over the Window.

 <uRClick>       An action to be performed when the right button of the mouse
                 is clicked over the Window.

 <uMove>         An action to be performed everytime the Window is moved.

 <uResize>       An action to be performed everytime the Window is resized.

 <uPaint>        An action, generally drawing action, to be performed
                 everytime the Window is painted.

 <uKeyDown>      An action to be performed everytime a key is pressed
                 beeing the Window focused.

 <uInit>         An action to be performed, generally some initialization,
                 when the Window is beeing initialized.

See Also: TWindow TMenu TBrush TIcon Window.ch Windows
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson