class WXDLLEXPORT wxSpinButtonBase : public wxControl
{
public:
- wxSpinButtonBase() { InitBase(); }
+ // ctor intiializes the range with the default (0..100) values
+ wxSpinButtonBase() { m_min = 0; m_max = 100; }
// accessors
virtual int GetValue() const = 0;
bool IsVertical() const { return (m_windowStyle & wxSP_VERTICAL) != 0; }
protected:
- // init the base part of the control
- void InitBase()
- {
- m_min = 0;
- m_max = 100;
- }
-
// the range value
int m_min;
int m_max;
// ----------------------------------------------------------------------------
// the default initialization
-void wxWindowBase::InitBase()
+wxWindowBase::wxWindowBase()
{
// no window yet, no parent nor children
m_parent = (wxWindow *)NULL;
void wxWindowGTK::Init()
{
- // common init
- InitBase();
-
// GTK specific
m_widget = (GtkWidget *) NULL;
m_wxwindow = (GtkWidget *) NULL;
void wxWindowGTK::Init()
{
- // common init
- InitBase();
-
// GTK specific
m_widget = (GtkWidget *) NULL;
m_wxwindow = (GtkWidget *) NULL;
void wxWindowMac::Init()
{
- // generic
- InitBase();
-
- m_isBeingDeleted = FALSE;
m_backgroundTransparent = FALSE;
// as all windows are created with WS_VISIBLE style...
m_hScrollBar = NULL ;
m_vScrollBar = NULL ;
-
- m_label = wxEmptyString;
}
// Destructor
void wxWindowMac::Init()
{
- // generic
- InitBase();
-
- m_isBeingDeleted = FALSE;
m_backgroundTransparent = FALSE;
// as all windows are created with WS_VISIBLE style...
m_hScrollBar = NULL ;
m_vScrollBar = NULL ;
-
- m_label = wxEmptyString;
}
// Destructor
wxLogFatalError(_("Cannot initialize display."));
}
- // generic:
- InitBase();
-
// mgl specific:
m_wnd = NULL;
m_isShown = TRUE;
- m_isBeingDeleted = FALSE;
- m_isEnabled = TRUE;
m_frozen = FALSE;
m_paintMGLDC = NULL;
m_eraseBackground = -1;
void wxChoice::Init()
{
- InitBase();
-
m_noStrings = 0;
m_buttonWidget = (WXWidget) 0;
m_menuWidget = (WXWidget) 0;
SetName(name);
- InitBase();
-
m_windowId = ( id == -1 ) ? NewControlId() : id;
bool isVert = IsVertical();
void wxWindow::Init()
{
- // generic initializations first
- InitBase();
-
// Motif-specific
m_needsRefresh = TRUE;
m_mainWidget = (WXWidget) 0;
m_winCaptured = FALSE;
m_isShown = TRUE;
- m_isBeingDeleted = FALSE;
m_hScrollBar =
m_vScrollBar =
const wxString& name)
{
// basic initialization
- InitBase();
-
m_windowId = (id == -1) ? NewControlId() : id;
m_backgroundColour = parent->GetBackgroundColour() ;
void wxWindowOS2::Init()
{
- //
- // Generic
- //
- InitBase();
-
//
// PM specific
//
m_bWinCaptured = FALSE;
- m_isBeingDeleted = FALSE;
m_fnOldWndProc = NULL;
m_bUseCtl3D = FALSE;
m_bMouseInWindow = FALSE;
void wxWindowX11::Init()
{
- // generic initializations first
- InitBase();
-
// X11-specific
m_mainWindow = (WXWindow) 0;
m_clientWindow = (WXWindow) 0;
m_winCaptured = FALSE;
m_needsInputFocus = FALSE;
m_isShown = TRUE;
- m_isBeingDeleted = FALSE;
m_lastTS = 0;
m_lastButton = 0;
}