Default constructor.
-\func{}{wxStaticLine}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{}{wxStaticLine}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
\param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = wxLI\_HORIZONTAL}, \param{const wxString\& }{name = ``staticLine"}}
\membersection{wxStaticLine::Create}\label{wxstaticlinecreate}
-\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
+\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = wxID\_ANY},\rtfsp
\param{const wxPoint\&}{ pos = wxDefaultPosition}, \param{const wxSize\& }{size = wxDefaultSize},\rtfsp
\param{long}{ style = 0}, \param{const wxString\& }{name = ``staticLine"}}
// ------------------------------------------------------------------------
public:
wxStaticLine() { }
- wxStaticLine(wxWindow *parent, wxWindowID winid,
+ wxStaticLine(wxWindow *parent, wxWindowID winid = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0, const wxString& name = wxStaticTextNameStr)
Create(parent, winid, pos, size, style, name);
}
- bool Create(wxWindow *parent, wxWindowID winid,
+ bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0, const wxString& name = wxStaticTextNameStr);
wxStaticLine() { m_statbox = NULL; }
wxStaticLine( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
virtual ~wxStaticLine();
bool Create( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
/////////////////////////////////////////////////////////////////////////////
-// Name: statline.h
+// Name: wx/gtk/statline.h
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#define __GTKSTATICLINEH__
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface
+ #pragma interface "statline.h"
#endif
#include "wx/defs.h"
#if wxUSE_STATLINE
-#include "wx/object.h"
-#include "wx/list.h"
-#include "wx/control.h"
-
-//-----------------------------------------------------------------------------
-// classes
-//-----------------------------------------------------------------------------
-
-class wxStaticLine;
-
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
// wxStaticLine
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
class wxStaticLine : public wxStaticLineBase
{
- DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
public:
wxStaticLine();
- wxStaticLine( wxWindow *parent, wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
- bool Create( wxWindow *parent, wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
+ wxStaticLine(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLI_HORIZONTAL,
+ const wxString &name = wxStaticTextNameStr);
+ bool Create(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLI_HORIZONTAL,
+ const wxString &name = wxStaticTextNameStr);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
+
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxStaticLine)
};
-#endif
- // wxUSE_STATLINE
-
-#endif
- // __GTKSTATICLINEH__
+#endif // wxUSE_STATLINE
+
+#endif // __GTKSTATICLINEH__
+
/////////////////////////////////////////////////////////////////////////////
-// Name: statline.h
+// Name: wx/gtk/statline.h
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#define __GTKSTATICLINEH__
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface
+ #pragma interface "statline.h"
#endif
#include "wx/defs.h"
#if wxUSE_STATLINE
-#include "wx/object.h"
-#include "wx/list.h"
-#include "wx/control.h"
-
-//-----------------------------------------------------------------------------
-// classes
-//-----------------------------------------------------------------------------
-
-class wxStaticLine;
-
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
// wxStaticLine
-//-----------------------------------------------------------------------------
+// ----------------------------------------------------------------------------
class wxStaticLine : public wxStaticLineBase
{
- DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
public:
wxStaticLine();
- wxStaticLine( wxWindow *parent, wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
- bool Create( wxWindow *parent, wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- long style = wxLI_HORIZONTAL, const wxString &name = wxStaticTextNameStr );
+ wxStaticLine(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxPoint &pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLI_HORIZONTAL,
+ const wxString &name = wxStaticTextNameStr);
+ bool Create(wxWindow *parent,
+ wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxLI_HORIZONTAL,
+ const wxString &name = wxStaticTextNameStr);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-
+
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxStaticLine)
};
-#endif
- // wxUSE_STATLINE
-
-#endif
- // __GTKSTATICLINEH__
+#endif // wxUSE_STATLINE
+
+#endif // __GTKSTATICLINEH__
+
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
{
- DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
public:
// constructors and pseudo-constructors
wxStaticLine() : m_statbox(NULL) { }
wxStaticLine( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
}
bool Create( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
// will want to return the main widget for m_statbox
//
WXWidget GetMainWidget() const;
-
+
protected:
// we implement the static line using a static box
wxStaticBox *m_statbox;
+
+ DECLARE_DYNAMIC_CLASS(wxStaticLine)
};
#endif // _WX_GENERIC_STATLINE_H_
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
{
- DECLARE_DYNAMIC_CLASS(wxStaticLine)
-
public:
// constructors and pseudo-constructors
wxStaticLine() : m_statbox(NULL) { }
wxStaticLine( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
}
bool Create( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
// will want to return the main widget for m_statbox
//
WXWidget GetMainWidget() const;
-
+
protected:
// we implement the static line using a static box
wxStaticBox *m_statbox;
+
+ DECLARE_DYNAMIC_CLASS(wxStaticLine)
};
#endif // _WX_GENERIC_STATLINE_H_
wxStaticLine() { }
wxStaticLine( wxWindow *parent,
- wxWindowID id,
- const wxPoint &pos = wxDefaultPosition,
- const wxSize &size = wxDefaultSize,
+ wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticTextNameStr )
{
}
bool Create( wxWindow *parent,
- wxWindowID id,
- const wxPoint &pos = wxDefaultPosition,
- const wxSize &size = wxDefaultSize,
+ wxWindowID id = wxID_ANY,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
const wxString &name = wxStaticTextNameStr );
// constructors and pseudo-constructors
wxStaticLine() { }
wxStaticLine( wxWindow* pParent
- ,wxWindowID vId
+ ,wxWindowID vId = wxID_ANY
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = wxLI_HORIZONTAL
}
bool Create( wxWindow* pParent
- ,wxWindowID vId
+ ,wxWindowID vId = wxID_ANY
,const wxPoint& rPos = wxDefaultPosition
,const wxSize& rSize = wxDefaultSize
,long lStyle = wxLI_HORIZONTAL
wxStaticLine() { }
wxStaticLine( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
}
bool Create( wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
}
wxStaticLine(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,
}
bool Create(wxWindow *parent,
- wxWindowID id,
+ wxWindowID id = wxID_ANY,
const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL,