]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/splitterwindow.h
Don't take the previous paragraph style when deleting paragraph marker
[wxWidgets.git] / docs / doxygen / overviews / splitterwindow.h
CommitLineData
15b6757b
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: splitterwindow
3// Purpose: topic overview
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/*!
36c9828f 10
15b6757b 11 @page splitterwindow_overview wxSplitterWindow overview
36c9828f 12
15b6757b
FM
13 Classes: #wxSplitterWindow
14 The following screenshot shows the appearance of a splitter window with a horizontal split.
36c9828f 15
15b6757b
FM
16 The style wxSP_3D has been used to show a 3D border and 3D sash.
17 #Example
36c9828f
FM
18
19
15b6757b 20 @section wxsplitterwindowexample Example
36c9828f 21
15b6757b
FM
22 The following fragment shows how to create a splitter window, creating two
23 subwindows and hiding one of them.
36c9828f
FM
24
25
15b6757b
FM
26 @code
27 splitter = new wxSplitterWindow(this, -1, wxPoint(0, 0), wxSize(400, 400), wxSP_3D);
36c9828f 28
15b6757b
FM
29 leftWindow = new MyWindow(splitter);
30 leftWindow-SetScrollbars(20, 20, 50, 50);
36c9828f 31
15b6757b
FM
32 rightWindow = new MyWindow(splitter);
33 rightWindow-SetScrollbars(20, 20, 50, 50);
34 rightWindow-Show(@false);
36c9828f 35
15b6757b 36 splitter-Initialize(leftWindow);
36c9828f 37
15b6757b
FM
38 // Set this to prevent unsplitting
39 // splitter-SetMinimumPaneSize(20);
40 @endcode
36c9828f
FM
41
42
15b6757b 43 The next fragment shows how the splitter window can be manipulated after creation.
36c9828f
FM
44
45
15b6757b
FM
46 @code
47 void MyFrame::OnSplitVertical(wxCommandEvent& event)
48 {
49 if ( splitter-IsSplit() )
50 splitter-Unsplit();
51 leftWindow-Show(@true);
52 rightWindow-Show(@true);
53 splitter-SplitVertically( leftWindow, rightWindow );
54 }
36c9828f 55
15b6757b
FM
56 void MyFrame::OnSplitHorizontal(wxCommandEvent& event)
57 {
58 if ( splitter-IsSplit() )
59 splitter-Unsplit();
60 leftWindow-Show(@true);
61 rightWindow-Show(@true);
62 splitter-SplitHorizontally( leftWindow, rightWindow );
63 }
36c9828f 64
15b6757b
FM
65 void MyFrame::OnUnsplit(wxCommandEvent& event)
66 {
67 if ( splitter-IsSplit() )
68 splitter-Unsplit();
69 }
70 @endcode
36c9828f 71
15b6757b 72 */
36c9828f
FM
73
74