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
}
20 \helpref{wxAdv
}{librarieslist
}
22 \wxheading{Window styles
}
24 The following styles apply in addition to the normal wxWindow styles.
27 \begin{twocollist
}\itemsep=
0pt
28 \twocolitem{\windowstyle{wxSW
\_3D}}{Draws a
3D effect sash and border.
}
29 \twocolitem{\windowstyle{wxSW
\_3DSASH}}{Draws a
3D effect sash.
}
30 \twocolitem{\windowstyle{wxSW
\_3DBORDER}}{Draws a
3D effect border.
}
31 \twocolitem{\windowstyle{wxSW
\_BORDER}}{Draws a thin black border.
}
34 See also
\helpref{window styles overview
}{windowstyles
}.
36 \wxheading{Event handling
}
39 \begin{twocollist
}\itemsep=
0pt
40 \twocolitem{{\bf EVT
\_SASH\_DRAGGED(id, func)
}}{Process a wxEVT
\_SASH\_DRAGGED event,
41 when the user has finished dragging a sash.
}
42 \twocolitem{{\bf EVT
\_SASH\_DRAGGED\_RANGE(id1, id2, func)
}}{Process a wxEVT
\_SASH\_DRAGGED\_RANGE event,
43 when the user has finished dragging a sash. The event handler is called when windows with ids in the
44 given range have their sashes dragged.
}
47 \wxheading{Data types
}
51 enum wxSashEdgePosition
{
63 \helpref{wxSashEvent
}{wxsashevent
},
\helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\helpref{Event handling overview
}{eventhandlingoverview
}
65 \latexignore{\rtfignore{\wxheading{Members
}}}
67 \membersection{wxSashWindow::wxSashWindow
}\label{wxsashwindowctor
}
69 \func{}{wxSashWindow
}{\void}
73 \func{}{wxSashWindow
}{\param{wxWindow*
}{ parent
},
\param{wxWindowID
}{id
},
74 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
75 \param{const wxSize\&
}{size = wxDefaultSize
},
76 \param{long
}{style = wxCLIP
\_CHILDREN \pipe wxSW
\_3D},
77 \param{const wxString\&
}{name = "sashWindow"
}}
79 Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
81 \wxheading{Parameters
}
83 \docparam{parent
}{Pointer to a parent window.
}
85 \docparam{id
}{Window identifier. If -
1, will automatically create an identifier.
}
87 \docparam{pos
}{Window position. wxDefaultPosition is (-
1, -
1) which indicates that wxSashWindows
88 should generate a default position for the window. If using the wxSashWindow class directly, supply
91 \docparam{size
}{Window size. wxDefaultSize is (-
1, -
1) which indicates that wxSashWindows
92 should generate a default size for the window.
}
94 \docparam{style
}{Window style. For window styles, please see
\helpref{wxSashWindow
}{wxsashwindow
}.
}
96 \docparam{name
}{Window name.
}
98 \membersection{wxSashWindow::
\destruct{wxSashWindow
}}\label{wxsashwindowdtor
}
100 \func{}{\destruct{wxSashWindow
}}{\void}
104 \membersection{wxSashWindow::GetSashVisible
}\label{wxsashwindowgetsashvisible
}
106 \constfunc{bool
}{GetSashVisible
}{\param{wxSashEdgePosition
}{edge
}}
108 Returns true if a sash is visible on the given edge, false otherwise.
110 \wxheading{Parameters
}
112 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
116 \helpref{wxSashWindow::SetSashVisible
}{wxsashwindowsetsashvisible
}
118 \membersection{wxSashWindow::GetMaximumSizeX
}\label{wxsashwindowgetmaximumsizex
}
120 \constfunc{int
}{GetMaximumSizeX
}{\void}
122 Gets the maximum window size in the x direction.
124 \membersection{wxSashWindow::GetMaximumSizeY
}\label{wxsashwindowgetmaximumsizey
}
126 \constfunc{int
}{GetMaximumSizeY
}{\void}
128 Gets the maximum window size in the y direction.
130 \membersection{wxSashWindow::GetMinimumSizeX
}\label{wxsashwindowgetminimumsizex
}
132 \func{int
}{GetMinimumSizeX
}{\void}
134 Gets the minimum window size in the x direction.
136 \membersection{wxSashWindow::GetMinimumSizeY
}\label{wxsashwindowgetminimumsizey
}
138 \constfunc{int
}{GetMinimumSizeY
}{\void}
140 Gets the minimum window size in the y direction.
142 \membersection{wxSashWindow::HasBorder
}\label{wxsashwindowhasborder
}
144 \constfunc{bool
}{HasBorder
}{\param{wxSashEdgePosition
}{edge
}}
146 Returns true if the sash has a border, false otherwise.
147 This function is obsolete since the sash border property is unused.
149 \wxheading{Parameters
}
151 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
155 \helpref{wxSashWindow::SetSashBorder
}{wxsashwindowsetsashborder
}
157 \membersection{wxSashWindow::SetMaximumSizeX
}\label{wxsashwindowsetmaximumsizex
}
159 \func{void
}{SetMaximumSizeX
}{\param{int
}{ min
}}
161 Sets the maximum window size in the x direction.
163 \membersection{wxSashWindow::SetMaximumSizeY
}\label{wxsashwindowsetmaximumsizey
}
165 \func{void
}{SetMaximumSizeY
}{\param{int
}{ min
}}
167 Sets the maximum window size in the y direction.
169 \membersection{wxSashWindow::SetMinimumSizeX
}\label{wxsashwindowsetminimumsizex
}
171 \func{void
}{SetMinimumSizeX
}{\param{int
}{ min
}}
173 Sets the minimum window size in the x direction.
175 \membersection{wxSashWindow::SetMinimumSizeY
}\label{wxsashwindowsetminimumsizey
}
177 \func{void
}{SetMinimumSizeY
}{\param{int
}{ min
}}
179 Sets the minimum window size in the y direction.
181 \membersection{wxSashWindow::SetSashVisible
}\label{wxsashwindowsetsashvisible
}
183 \func{void
}{SetSashVisible
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ visible
}}
185 Call this function to make a sash visible or invisible on a particular edge.
187 \wxheading{Parameters
}
189 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
191 \docparam{visible
}{true to make the sash visible, false to make it invisible.
}
195 \helpref{wxSashWindow::GetSashVisible
}{wxsashwindowgetsashvisible
}
197 \membersection{wxSashWindow::SetSashBorder
}\label{wxsashwindowsetsashborder
}
199 \func{void
}{SetSashBorder
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ hasBorder
}}
201 Call this function to give the sash a border, or remove the border.
202 This function is obsolete since the sash border property is unused.
204 \wxheading{Parameters
}
206 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
208 \docparam{hasBorder
}{true to give the sash a border visible, false to remove it.
}
212 \helpref{wxSashWindow::HasBorder
}{wxsashwindowhasborder
}