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:Init() Method
Construct a control window object
------------------------------------------------------------------------------

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

Arguments
<oParent> is the parent (owner) window object.  Usually a
WDialog object, or an instance of a descendant of WDialog.
Just as <oParent> is the owner of the control object, the
parent's hWnd will be the actual owner of the control's window
(if it has a window on the screen).

<nId> is an optional number.  It will (eventually) default to
self:CreateId(), but you normally specify it as the same
value as in a dialog containing the control.

<cTitle> specifies the caption for the title bar of the window
(if any) to be created.  This is not often specified (even for
controls in dynamic dialogs).

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

Returns
SELF.

Description
This method initialises a control window object.  By default,
this will NOT create a window on the screen (because controls
are usually automatically created in dialogs).

Note: the order of <nId> and <cTitle> is the opposite of that
needed for WWindow, reflecting the fact that <cTitle> and
later parameters are usually omitted for a control, whereas
<cTitle> is usually specified for other windows and <nId> is not.

Because WControlWindow is an abstract class, you should
consult the syntax for the appropriate descendant of this
class.  In any case, the Init() method is usually invoked as
a result of the @ ... ID command.

Example
@ Id IDD_CHAR  RadioButton  Action ::Type("C")  Obj oChar


See Also: WWindowBase:Axit()

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