⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sashevt.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
\section{\class{wxSashEvent}}\label{wxsashevent}A sash event is sent when the sash of a \helpref{wxSashWindow}{wxsashwindow} has beendragged by the user.\wxheading{Derived from}\helpref{wxCommandEvent}{wxcommandevent}\\\helpref{wxEvent}{wxevent}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/sashwin.h>\wxheading{Event table macros}To process an activate event, use these event handler macros to direct input to a memberfunction that takes a wxSashEvent argument.\twocolwidtha{7cm}%\begin{twocollist}\itemsep=0pt\twocolitem{{\bf EVT\_SASH\_DRAGGED(id, func)}}{Process a wxEVT\_SASH\_DRAGGED event,when the user has finished dragging a sash.}\twocolitem{{\bf EVT\_SASH\_DRAGGED\_RANGE(id1, id2, func)}}{Process a wxEVT\_SASH\_DRAGGED\_RANGE event,when the user has finished dragging a sash. The event handler is called when windows with ids in thegiven range have their sashes dragged.}\end{twocollist}\wxheading{Data structures}{\small\begin{verbatim}enum wxSashDragStatus{    wxSASH_STATUS_OK,    wxSASH_STATUS_OUT_OF_RANGE};\end{verbatim}}\wxheading{Remarks}When a sash belonging to a sash window is dragged by the user, and then released,this event is sent to the window, where it may be processed by an event tableentry in a derived class, a plug-in event handler or an ancestor class.Note that the wxSashWindow doesn't change the window's size itself. It relies on the application'sevent handler to do that. This is because the application may have to handle other consequencesof the resize, or it may wish to veto it altogether. The event handler shouldlook at the drag rectangle: see \helpref{wxSashEvent::GetDragRect}{wxsasheventgetdragrect} to seewhat the new size of the window would be if the resize were to be applied. It shouldalso call \helpref{wxSashEvent::GetDragStatus}{wxsasheventgetdragstatus} to see whether thedrag was OK or out of the current allowed range.\wxheading{See also}\helpref{wxSashWindow}{wxsashwindow},\rtfsp\helpref{Event handling overview}{eventhandlingoverview}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxSashEvent::wxSashEvent}\label{wxsasheventctor}\func{}{wxSashEvent}{\param{int }{id = 0}, \param{wxSashEdgePosition}{ edge = wxSASH\_NONE}}Constructor.\membersection{wxSashEvent::GetEdge}\label{wxsasheventgetedge}\constfunc{wxSashEdgePosition}{GetEdge}{\void}Returns the dragged edge. The return value is one of wxSASH\_TOP, wxSASH\_RIGHT, wxSASH\_BOTTOM, wxSASH\_LEFT.\membersection{wxSashEvent::GetDragRect}\label{wxsasheventgetdragrect}\constfunc{wxRect}{GetDragRect}{\void}Returns the rectangle representing the new size the window would be if the resize was applied. It isup to the application to set the window size if required.\membersection{wxSashEvent::GetDragStatus}\label{wxsasheventgetdragstatus}\constfunc{wxSashDragStatus}{GetDragStatus}{\void}Returns the status of the sash: one of wxSASH\_STATUS\_OK, wxSASH\_STATUS\_OUT\_OF\_RANGE.If the drag caused the notional bounding box of the window to flip over, for example, the drag will be out of rage.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -