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]

WStatusBar:Init() Method
Construct a status bar object
------------------------------------------------------------------------------

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

Arguments
<oParent> specifies 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.

<cTitle> specifies the text of the status bar window to be
created.  The default is "Ready".

<nId> is an optional id.

Returns
SELF.

Description
This method initialises a status bar 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's <nId> and <cTitle>,
reflecting the fact that <nId> is usually omitted for a status
bar, whereas <nId> is usually specified for controls and
<cTitle> is not.

Example
// From SOURCE\OO\DBFGEN.PRG:
CLASS MyApp INHERIT WApp
     METHOD Create(cText)     INLINE ::oWnd := MainWindow{self, cText}
ENDCLASS

CLASS MainWindow INHERIT WSDIWindow
// . . .
     METHOD Init(oApp, cText)                          ;
            INLINE super:Init(oApp, cText),            ;
                   ::StatusBar := WStatusBar{self},    ;
                   self


See Also: WWindow:Create() WSDIWindow WMDIFrame

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