#endif
#include "wx/window.h" // base class declaration
+#include "wx/containr.h" // wxControlContainer
class WXDLLEXPORT wxSplitterEvent;
wxSplitterWindow(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_3D|wxCLIP_CHILDREN,
+ long style = wxSP_3D,
const wxString& name = "splitter")
{
Init();
Create(parent, id, pos, size, style, name);
}
- ~wxSplitterWindow();
+ virtual ~wxSplitterWindow();
bool Create(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxSP_3D|wxCLIP_CHILDREN,
+ long style = wxSP_3D,
const wxString& name = "splitter");
// Gets the only or left/top pane
void SendUnsplitEvent(wxWindow *winRemoved);
protected:
+ // common part of all ctors
void Init();
-
int m_splitMode;
bool m_permitUnsplitAlways;
bool m_needUpdating; // when in live mode, set this to TRUE to resize children in idle
wxPen* m_facePen;
private:
+ WX_DECLARE_CONTROL_CONTAINER();
+
DECLARE_DYNAMIC_CLASS(wxSplitterWindow)
DECLARE_EVENT_TABLE()
};
typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
#define EVT_SPLITTER_SASH_POS_CHANGED(id, fn) \
- wxEventTableEntry( \
+ DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, \
id, \
-1, \
),
#define EVT_SPLITTER_SASH_POS_CHANGING(id, fn) \
- wxEventTableEntry( \
+ DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, \
id, \
-1, \
),
#define EVT_SPLITTER_DCLICK(id, fn) \
- wxEventTableEntry( \
+ DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, \
id, \
-1, \
),
#define EVT_SPLITTER_UNSPLIT(id, fn) \
- wxEventTableEntry( \
+ DECLARE_EVENT_TABLE_ENTRY( \
wxEVT_COMMAND_SPLITTER_UNSPLIT, \
id, \
-1, \