@see Initialize(), SplitVertically(), SplitHorizontally(), Create()
*/
- wxSplitterWindow(wxWindow* parent, wxWindowID id,
+ wxSplitterWindow(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSP_3D,
Creation function, for two-step construction.
See wxSplitterWindow() for details.
*/
- bool Create(wxWindow* parent, wxWindowID id,
+ bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& point = wxDefaultPosition,
- const wxSize& size = wxDefaultSize,
- long style = wxSP_3D,
- const wxString& name = "splitterWindow");
+ const wxSize& size = wxDefaultSize, long style = wxSP_3D,
+ const wxString& name = "splitter");
/**
Returns the current minimum pane size (defaults to zero).
@see SetSplitMode(), SplitVertically(), SplitHorizontally().
*/
- int GetSplitMode() const;
+ wxSplitMode GetSplitMode() const;
/**
Returns the left/top or only pane.
@see GetSashPosition()
*/
- void SetSashPosition(int position, const bool redraw = true);
+ void SetSashPosition(int position, bool redraw = true);
/**
Sets the sash size. Normally, the sash size is determined according to the
@see SplitVertically(), IsSplit(), Unsplit()
*/
- bool SplitHorizontally(wxWindow* window1, wxWindow* window2,
- int sashPosition = 0);
+ virtual bool SplitHorizontally(wxWindow* window1, wxWindow* window2,
+ int sashPosition = 0);
/**
Initializes the left and right panes of the splitter window.
@see SplitHorizontally(), IsSplit(), Unsplit().
*/
- bool SplitVertically(wxWindow* window1, wxWindow* window2,
- int sashPosition = 0);
+ virtual bool SplitVertically(wxWindow* window1, wxWindow* window2,
+ int sashPosition = 0);
/**
Unsplits the window.