Padre-Plugin-WxWidgets
view release on metacpan or search on metacpan
share/doc/wxwidgets.pod view on Meta::CPAN
wxSplitterWindow::Initialize, wxSplitterWindow::SplitVertically and
wxSplitterWindow::SplitHorizontally in order to set the pane(s).
You can create two windows, with one hidden when not being shown; or
you can create and delete the second pane on demand.
See also
wxSplitterWindow::Initialize, wxSplitterWindow::SplitVertically,
wxSplitterWindow::SplitHorizontally, wxSplitterWindow::Create
=head2 Wx::SplitterWindow::DESTROY
~wxSplitterWindow()
Destroys the wxSplitterWindow and its children.
=head2 Wx::SplitterWindow::Create
bool Create(wxWindow* parent, wxWindowID id, const wxPoint& point =
wxDefaultPosition, const wxSize& size = wxDefaultSize, long
style=wxSP_3D, const wxString& name = "splitterWindow")
Creation function, for two-step construction. See
wxSplitterWindow::wxSplitterWindow for details.
=head2 Wx::SplitterWindow::GetMinimumPaneSize
int GetMinimumPaneSize() const
Returns the current minimum pane size (defaults to zero).
See also
wxSplitterWindow::SetMinimumPaneSize
=head2 Wx::SplitterWindow::GetSashGravity
double GetSashGravity()
Returns the current sash gravity.
See also
wxSplitterWindow::SetSashGravity
=head2 Wx::SplitterWindow::GetSashPosition
int GetSashPosition()
Returns the current sash position.
See also
wxSplitterWindow::SetSashPosition
=head2 Wx::SplitterWindow::GetSplitMode
int GetSplitMode() const
Gets the split mode.
See also
wxSplitterWindow::SetSplitMode, wxSplitterWindow::SplitVertically,
wxSplitterWindow::SplitHorizontally.
=head2 Wx::SplitterWindow::GetWindow1
wxWindow* GetWindow1() const
Returns the left/top or only pane.
=head2 Wx::SplitterWindow::GetWindow2
wxWindow* GetWindow2() const
Returns the right/bottom pane.
=head2 Wx::SplitterWindow::Initialize
void Initialize(wxWindow* window)
Initializes the splitter window to have one pane. The child window is
shown if it is currently hidden.
Parameters
window
The pane for the unsplit window.
Remarks
This should be called if you wish to initially view only a single pane
in the splitter window.
See also
wxSplitterWindow::SplitVertically, wxSplitterWindow::SplitHorizontally
=head2 Wx::SplitterWindow::IsSplit
bool IsSplit() const
Returns true if the window is split, false otherwise.
=head2 Wx::SplitterWindow::OnDoubleClickSash
virtual void OnDoubleClickSash(int x, int y)
Application-overridable function called when the sash is
double-clicked with the left mouse button.
Parameters
x
The x position of the mouse cursor.
y
share/doc/wxwidgets.pod view on Meta::CPAN
void SetSashPosition(int position, const bool redraw = true)
Sets the sash position.
Parameters
position
The sash position in pixels.
redraw
If true, resizes the panes and redraws the sash and border.
Remarks
Does not currently check for an out-of-range value.
See also
wxSplitterWindow::GetSashPosition
=head2 Wx::SplitterWindow::SetSashSize
void SetSashSize(int size)
Sets the sash size. Normally, the sash size is determined according to
the metrics of each platform, but the application can override this,
for example to show a thin sash that the user is not expected to drag.
If size is more -1, the custom sash size will be used.
=head2 Wx::SplitterWindow::SetMinimumPaneSize
void SetMinimumPaneSize(int paneSize)
Sets the minimum pane size.
Parameters
paneSize
Minimum pane size in pixels.
Remarks
The default minimum pane size is zero, which means that either pane
can be reduced to zero by dragging the sash, thus removing one of the
panes. To prevent this behaviour (and veto out-of-range sash
dragging), set a minimum size, for example 20 pixels. If the
wxSP_PERMIT_UNSPLIT style is used when a splitter window is created,
the window may be unsplit even if minimum size is non-zero.
See also
wxSplitterWindow::GetMinimumPaneSize
=head2 Wx::SplitterWindow::SetSplitMode
void SetSplitMode(int mode)
Sets the split mode.
Parameters
mode
Can be wxSPLIT_VERTICAL or wxSPLIT_HORIZONTAL.
Remarks
Only sets the internal variable; does not update the display.
See also
wxSplitterWindow::GetSplitMode, wxSplitterWindow::SplitVertically,
wxSplitterWindow::SplitHorizontally.
=head2 Wx::SplitterWindow::SplitHorizontally
bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int
sashPosition = 0)
Initializes the top and bottom panes of the splitter window. The child
windows are shown if they are currently hidden.
Parameters
window1
The top pane.
window2
The bottom pane.
sashPosition
The initial position of the sash. If this value is positive, it
specifies the size of the upper pane. If it is negative, its
absolute value gives the size of the lower pane. Finally, specify
0 (default) to choose the default position (half of the total
window height).
Return value
true if successful, false otherwise (the window was already split).
Remarks
This should be called if you wish to initially view two panes. It can
also be called at any subsequent time, but the application should
check that the window is not currently split using IsSplit.
See also
wxSplitterWindow::SplitVertically, wxSplitterWindow::IsSplit,
wxSplitterWindow::Unsplit
=head2 Wx::SplitterWindow::SplitVertically
bool SplitVertically(wxWindow* window1, wxWindow* window2, int
( run in 0.536 second using v1.01-cache-2.11-cpan-71847e10f99 )