Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WWindow:Init() Method
Construct a window object
------------------------------------------------------------------------------

Syntax
WWindow{ <oParent>, [ <cTitle> ] , [ <nId> ] , [ <lCreate> ] ,
         [ <lNeedRegClass> ] }   -->   SELF

Arguments
<oParent> is the parent (owner) of the window.  Just as
<oParent> is the owner of self, the parent's hWnd will be the
actual owner of self's window (if it has a window on the
screen).

<cTitle> specifies the caption for the title bar of the window
(if any) to be created.

<nId> is an optional number, defaulting to self:CreateId().

<lCreate> specifies whether the window object's Create()
method is to be invoked immediately.  Usually you want the
default (.T.).

<lNeedRegClass> can be .F. to prevent a window class being
automatically detected/registered.  Usually you want the
default (.T.).

Returns
SELF.

Description
This method initialises a window object.  By default, this
will also create a window on the screen.

Note: the order of <cTitle> and  <nId>  is the opposite of
that needed for WControlWindow, reflecting the fact that <nId>
and later parameters are usually omitted for a non-control
window, whereas <nId> is usually specified for controls and
<cTitle> is not.

Example
oWnd = WWindow{ "Clip-4-Win Window" }


See Also: WWindowBase:Axit() WWindow:Create()

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