Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - window commands http://www.X-Hacker.org [<<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> ] ;
                        [ <color: COLOR, COLORS> <nClrFore> [,<nClrBack>] ];
                        [ OF <oParent> ] ;
                        [ BRUSH <oBrush> ] ;
                        [ CURSOR <oCursor> ] ;
                        [ ICON  <oIcon> ] ;
                        [ MENU <oMenu> ] ;
                        [ STYLE <nStyle> ] ;
                        [ BORDER [ NONE | SINGLE ] ] ;
                        [ NOSYSMENU | NO SYSMENU ] ;
                        [ NOCAPTION | NO CAPTION | NO TITLE ] ;
                        [ NOICONIZE | NOMINIMIZE ] ;
                        [ NOZOOM | NO ZOOM | NOMAXIMIZE | NO MAXIMIZE ] ;
                        [ VSCROLL | VERTICAL SCROLL ] ;
                        [ HSCROLL | HORIZONTAL SCROLL ]

 <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.

 <oParent>       A reference to the Parent Window.

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

 <oCursor>       A reference to the Cursor Object to display over this control.

 <oIcon>         A reference to an Icon Object to be used by the Window.
                 Use DEFINE ICON ... to create it. This parameter is optional.

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

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

 <nClrFore>      The colors to use for the windows. They may be
 <nClrBack>      numeric RGB colors or xBase string colors.


 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 every time the Window is moved.

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

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

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

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


See Also: CLASS TWindow MDI TMenu TBrush TIcon Windows

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson