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 the sashes in
3D.
}
27 See also
\helpref{window styles overview
}{windowstyles
}.
29 \wxheading{Event handling
}
32 \begin{twocollist
}\itemsep=
0pt
33 \twocolitem{{\bf EVT
\_SASH\_DRAGGED(id, func)
}}{Process a wxEVT
\_SASH\_DRAGGED event,
34 when the user has finished dragging a sash.
}
35 \twocolitem{{\bf EVT
\_SASH\_DRAGGED\_RANGE(id1, id2, func)
}}{Process a wxEVT
\_SASH\_DRAGGED\_RANGE event,
36 when the user has finished dragging a sash. The event handler is called when windows with ids in the
37 given range have their sashes dragged.
}
40 \wxheading{Data types
}
44 enum wxSashEdgePosition
{
56 \helpref{wxSashEvent
}{wxsashevent
},
\helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\helpref{Event handling overview
}{eventhandlingoverview
}
58 \latexignore{\rtfignore{\wxheading{Members
}}}
60 \membersection{wxSashWindow::wxSashWindow
}
62 \func{}{wxSashWindow
}{\void}
66 \func{}{wxSashWindow
}{\param{wxSashWindow*
}{ parent
},
\param{wxSashWindowID
}{id
},
67 \param{const wxPoint\&
}{pos = wxDefaultPosition
},
68 \param{const wxSize\&
}{size = wxDefaultSize
},
69 \param{long
}{style = wxCLIP
\_CHILDREN \pipe wxSW
\_3D},
70 \param{const wxString\&
}{name = "sashWindow"
}}
72 Constructs a sash window, which can be a child of a frame, dialog or any other non-control window.
74 \wxheading{Parameters
}
76 \docparam{parent
}{Pointer to a parent window.
}
78 \docparam{id
}{Window identifier. If -
1, will automatically create an identifier.
}
80 \docparam{pos
}{Window position. wxDefaultPosition is (-
1, -
1) which indicates that wxSashWindows
81 should generate a default position for the window. If using the wxSashWindow class directly, supply
84 \docparam{size
}{Window size. wxDefaultSize is (-
1, -
1) which indicates that wxSashWindows
85 should generate a default size for the window.
}
87 \docparam{style
}{Window style. For window styles, please see
\helpref{wxSashWindow
}{wxsashwindow
}.
}
89 \docparam{name
}{Window name.
}
91 \membersection{wxSashWindow::
\destruct{wxSashWindow
}}
93 \func{}{\destruct{wxSashWindow
}}{\void}
97 \membersection{wxSashWindow::GetSashVisible
}\label{wxsashwindowgetsashvisible
}
99 \constfunc{bool
}{GetSashVisible
}{\param{wxSashEdgePosition
}{edge
}}
101 Returns TRUE if a sash is visible on the given edge, FALSE otherwise.
103 \wxheading{Parameters
}
105 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
109 \helpref{wxSashWindow::SetSashVisible
}{wxsashwindowsetsashvisible
}
111 \membersection{wxSashWindow::GetMaximumSizeX
}\label{wxsashwindowgetmaximumsizex
}
113 \constfunc{int
}{GetMaximumSizeX
}{\void}
115 Gets the maximum window size in the x direction.
117 \membersection{wxSashWindow::GetMaximumSizeY
}\label{wxsashwindowgetmaximumsizey
}
119 \constfunc{int
}{GetMaximumSizeY
}{\void}
121 Gets the maximum window size in the y direction.
123 \membersection{wxSashWindow::GetMinimumSizeX
}\label{wxsashwindowgetminimumsizex
}
125 \func{int
}{GetMinimumSizeX
}{\void}
127 Gets the minimum window size in the x direction.
129 \membersection{wxSashWindow::GetMinimumSizeY
}\label{wxsashwindowgetminimumsizey
}
131 \constfunc{int
}{GetMinimumSizeY
}{\param{int
}{ min
}}
133 Gets the minimum window size in the y direction.
135 \membersection{wxSashWindow::HasBorder
}\label{wxsashwindowhasborder
}
137 \constfunc{bool
}{HasBorder
}{\param{wxSashEdgePosition
}{edge
}}
139 Returns TRUE if the sash has a border, FALSE otherwise.
141 \wxheading{Parameters
}
143 \docparam{edge
}{Edge. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
147 \helpref{wxSashWindow::SetSashBorder
}{wxsashwindowsetsashborder
}
149 \membersection{wxSashWindow::SetMaximumSizeX
}\label{wxsashwindowsetmaximumsizex
}
151 \func{void
}{SetMaximumSizeX
}{\param{int
}{ min
}}
153 Sets the maximum window size in the x direction.
155 \membersection{wxSashWindow::SetMaximumSizeY
}\label{wxsashwindowsetmaximumsizey
}
157 \func{void
}{SetMaximumSizeY
}{\param{int
}{ min
}}
159 Sets the maximum window size in the y direction.
161 \membersection{wxSashWindow::SetMinimumSizeX
}\label{wxsashwindowsetminimumsizex
}
163 \func{void
}{SetMinimumSizeX
}{\param{int
}{ min
}}
165 Sets the minimum window size in the x direction.
167 \membersection{wxSashWindow::SetMinimumSizeY
}\label{wxsashwindowsetminimumsizey
}
169 \func{void
}{SetMinimumSizeY
}{\param{int
}{ min
}}
171 Sets the minimum window size in the y direction.
173 \membersection{wxSashWindow::SetSashVisible
}\label{wxsashwindowsetsashvisible
}
175 \func{void
}{SetSashVisible
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ visible
}}
177 Call this function to make a sash visible or invisible on a particular edge.
179 \wxheading{Parameters
}
181 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
183 \docparam{visible
}{TRUE to make the sash visible, FALSE to make it invisible.
}
187 \helpref{wxSashWindow::GetSashVisible
}{wxsashwindowgetsashvisible
}
189 \membersection{wxSashWindow::SetSashBorder
}\label{wxsashwindowsetsashborder
}
191 \func{void
}{SetSashBorder
}{\param{wxSashEdgePosition
}{edge
},
\param{bool
}{ hasBorder
}}
193 Call this function to give the sash a border, or remove the border.
195 \wxheading{Parameters
}
197 \docparam{edge
}{Edge to change. One of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
}
199 \docparam{hasBorder
}{TRUE to give the sash a border visible, FALSE to remove it.
}
203 \helpref{wxSashWindow::HashBorder
}{wxsashwindowhasborder
}