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]

WControlWindow:Create() Method
Create a control's window
------------------------------------------------------------------------------

Syntax
<oWnd>:Create( [ <cTitle> ] , [ <nId> ] , [ <nX> ] , [ <nY> ] ,
               [ <nWidth> ] , [ <nHeight> ] , [ <cParam> ] )
    -->   self

Arguments
Also see the CreateWindow() function, which is called by this
method.

<cTitle> is an optional string defining the caption (title
bar) of the window to be created (used as the contents for an
edit control).  The default is "" (an empty string).

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

<nX>, <nY> specify the left, top of the window in pixels,
defaulting to CW_USEDEFAULT.

<nWidth>, <nHeight> specify the size of the window in pixels.

<cParam> optionally specifies initialisation data to be used
by the window.

Returns
SELF.

Description
This method can be used to create a control's window, whose
window handle is then stored in the hWnd instance variable.
In practice, this method is not often used directly, as the
control usually already exists (in a dialog).  Failing that,
most descendant classes call Create() either in their Init()
method or in their OnInitDialog() method.  However, if you
need to do some extra initialisation, for example, it can be
useful to stop the sub-class Init() calling this method (by
specifying <lCreate> as .F.), carrying out further work, and
finally calling this Create() method.

Example


See Also: WControlWindow:Init() CreateWindow()

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