1 \section{\class{wxSashWindow
}}\label{wxsashwindow
}
3 wxSashWindow allows any of its edges to have a sash which can be dragged
4 to resize the window. The actual content window will be created by the application
5 as a child of wxSashWindow. The window (or an ancestor) will be notified of a drag
6 via a
\helpref{wxSashEvent
}{wxsashevent
} notification.
8 \wxheading{Derived from
}
10 \helpref{wxWindow
}{wxwindow
}\\
11 \helpref{wxEvtHandler
}{wxevthandler
}\\
12 \helpref{wxObject
}{wxobject
}
14 \wxheading{Include files
}
18 \wxheading{Window styles
}
20 The following styles apply in addition to the normal wxWindow styles.
23 \begin{twocollist
}\itemsep=
0pt
24 \twocolitem{\windowstyle{wxSW
\_3D}}{Draws a
3D effect sash and border.
}
25 \twocolitem{\windowstyle{wxSW
\_3DSASH}}{Draws a
3D effect sash.
}
26 \twocolitem{\windowstyle{wxSW
\_3DBORDER}}{Draws a
3D effect border.
}
27 \twocolitem{\windowstyle{wxSW
\_BORDER}}{Draws a thin black border.
}
30 See also
\helpref{window styles overview
}{windowstyles
}.
32 \wxheading{Event handling
}
35 \begin{twocollist
}\itemsep=
0pt
36 \twocolitem{{\bf EVT
\_SASH\_DRAGGED(id, func)
}}{Process a wxEVT
\_SASH\_DRAGGED event,
37 when the user has finished dragging a sash.
}
38 \twocolitem{{\bf EVT
\_SASH\_DRAGGED\_RANGE(id1, id2, func)
}}{Process a wxEVT
\_SASH\_DRAGGED\_RANGE event,
39 when the user has finished dragging a sash. The event handler is called when windows with ids in the
40 given range have their sashes dragged.
}
43 \wxheading{Data types
}
47 enum wxSashEdgePosition
{
59 \helpref{wxSashEvent
}{wxsashevent
},
\helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\helpref{Event handling overview
}{eventhandlingoverview
}
61 \latexignore{\rtfignore{\wxheading{Members
}}}
63 \membersection{wxSashWindow::wxSashWindow
}
65 \func{}{wxSashWindow
}{\void}
69 \func{}{wxSashWindow
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{id
},
70 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
71 \param{const wxSize\&
}{size = wxDefaultSize
},
72 \param{long
}{style = wxCLIP
\_CHILDREN \pipe wxSW
\_3D},
73 \param{const wxString\&
}{name = "sashWindow"
}}
75 Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
77 \wxheading{Parameters
}
79 \docparam{parent
}{Pointer to a parent window.
}
81 \docparam{id
}{Window identifier. If -
1, will automatically create an identifier.
}
83 \docparam{pos
}{Window position. wxDefaultPosition is (-
1, -
1) which indicates that wxSashWindows
84 should generate a default position for the window. If using the wxSashWindow class directly, supply
87 \docparam{size
}{Window size. wxDefaultSize is (-
1, -
1) which indicates that wxSashWindows
88 should generate a default size for the window.
}
90 \docparam{style
}{Window style. For window styles, please see
\helpref{wxSashWindow
}{wxsashwindow
}.
}
92 \docparam{name
}{Window name.
}
94 \membersection{wxSashWindow::
\destruct{wxSashWindow
}}
96 \func{}{\destruct{wxSashWindow
}}{\void}
100 \membersection{wxSashWindow::GetSashVisible
}\label{wxsashwindowgetsashvisible
}
102 \constfunc{bool
}{GetSashVisible
}{\param{wxSashEdgePosition
}{edge
}}
104 Returns true if a sash is visible on the given edge, false otherwise.
106 \wxheading{Parameters
}
108 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
112 \helpref{wxSashWindow::SetSashVisible
}{wxsashwindowsetsashvisible
}
114 \membersection{wxSashWindow::GetMaximumSizeX
}\label{wxsashwindowgetmaximumsizex
}
116 \constfunc{int
}{GetMaximumSizeX
}{\void}
118 Gets the maximum window size in the x direction.
120 \membersection{wxSashWindow::GetMaximumSizeY
}\label{wxsashwindowgetmaximumsizey
}
122 \constfunc{int
}{GetMaximumSizeY
}{\void}
124 Gets the maximum window size in the y direction.
126 \membersection{wxSashWindow::GetMinimumSizeX
}\label{wxsashwindowgetminimumsizex
}
128 \func{int
}{GetMinimumSizeX
}{\void}
130 Gets the minimum window size in the x direction.
132 \membersection{wxSashWindow::GetMinimumSizeY
}\label{wxsashwindowgetminimumsizey
}
134 \constfunc{int
}{GetMinimumSizeY
}{\param{int
}{ min
}}
136 Gets the minimum window size in the y direction.
138 \membersection{wxSashWindow::HasBorder
}\label{wxsashwindowhasborder
}
140 \constfunc{bool
}{HasBorder
}{\param{wxSashEdgePosition
}{edge
}}
142 Returns true if the sash has a border, false otherwise.
144 \wxheading{Parameters
}
146 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
150 \helpref{wxSashWindow::SetSashBorder
}{wxsashwindowsetsashborder
}
152 \membersection{wxSashWindow::SetMaximumSizeX
}\label{wxsashwindowsetmaximumsizex
}
154 \func{void
}{SetMaximumSizeX
}{\param{int
}{ min
}}
156 Sets the maximum window size in the x direction.
158 \membersection{wxSashWindow::SetMaximumSizeY
}\label{wxsashwindowsetmaximumsizey
}
160 \func{void
}{SetMaximumSizeY
}{\param{int
}{ min
}}
162 Sets the maximum window size in the y direction.
164 \membersection{wxSashWindow::SetMinimumSizeX
}\label{wxsashwindowsetminimumsizex
}
166 \func{void
}{SetMinimumSizeX
}{\param{int
}{ min
}}
168 Sets the minimum window size in the x direction.
170 \membersection{wxSashWindow::SetMinimumSizeY
}\label{wxsashwindowsetminimumsizey
}
172 \func{void
}{SetMinimumSizeY
}{\param{int
}{ min
}}
174 Sets the minimum window size in the y direction.
176 \membersection{wxSashWindow::SetSashVisible
}\label{wxsashwindowsetsashvisible
}
178 \func{void
}{SetSashVisible
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ visible
}}
180 Call this function to make a sash visible or invisible on a particular edge.
182 \wxheading{Parameters
}
184 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
186 \docparam{visible
}{true to make the sash visible, false to make it invisible.
}
190 \helpref{wxSashWindow::GetSashVisible
}{wxsashwindowgetsashvisible
}
192 \membersection{wxSashWindow::SetSashBorder
}\label{wxsashwindowsetsashborder
}
194 \func{void
}{SetSashBorder
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ hasBorder
}}
196 Call this function to give the sash a border, or remove the border.
198 \wxheading{Parameters
}
200 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
202 \docparam{hasBorder
}{true to give the sash a border visible, false to remove it.
}
206 \helpref{wxSashWindow::HashBorder
}{wxsashwindowhasborder
}