1 \section{\class{wxSashEvent
}}\label{wxsashevent
}
3 A sash event is sent when the sash of a
\helpref{wxSashWindow
}{wxsashwindow
} has been
6 \wxheading{Derived from
}
8 \helpref{wxCommandEvent
}{wxcommandevent
}\\
9 \helpref{wxEvent
}{wxevent
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Event table macros
}
14 To process an activate event, use these event handler macros to direct input to a member
15 function that takes a wxSashEvent argument.
18 \begin{twocollist
}\itemsep=
0pt
19 \twocolitem{{\bf EVT
\_SASH\_DRAGGED(id, func)
}}{Process a wxEVT
\_SASH\_DRAGGED event,
20 when the user has finished dragging a sash.
}
21 \twocolitem{{\bf EVT
\_SASH\_DRAGGED\_RANGE(id1, id2, func)
}}{Process a wxEVT
\_SASH\_DRAGGED\_RANGE event,
22 when the user has finished dragging a sash. The event handler is called when windows with ids in the
23 given range have their sashes dragged.
}
26 \wxheading{Data structures
}
33 wxSASH_STATUS_OUT_OF_RANGE
40 When a sash belonging to a sash window is dragged by the user, and then released,
41 this event is sent to the window, where it may be processed by an event table
42 entry in a derived class, a plug-in event handler or an ancestor class.
44 Note that the wxSashWindow doesn't change the window's size itself. It relies on the application's
45 event handler to do that. This is because the application may have to handle other consequences
46 of the resize, or it may wish to veto it altogether. The event handler should
47 look at the drag rectangle: see
\helpref{wxSashEvent::GetDragRect
}{wxsasheventgetdragrect
} to see
48 what the new size of the window would be if the resize were to be applied. It should
49 also call
\helpref{wxSashEvent::GetDragStatus
}{wxsasheventgetdragstatus
} to see whether the
50 drag was OK or out of the current allowed range.
54 \helpref{wxSashWindow
}{wxsashwindow
},
\rtfsp
55 \helpref{Event handling overview
}{eventhandlingoverview
}
57 \latexignore{\rtfignore{\wxheading{Members
}}}
59 \membersection{wxSashEvent::wxSashEvent
}
61 \func{}{wxSashEvent
}{\param{int
}{id =
0},
\param{wxSashEdgePosition
}{ edge = wxSASH
\_NONE}}
65 \membersection{wxSashEvent::GetEdge
}\label{wxsasheventgetedge
}
67 \constfunc{wxSashEdgePosition
}{GetEdge
}{\void}
69 Returns the dragged edge. The return value is one of wxSASH
\_TOP, wxSASH
\_RIGHT, wxSASH
\_BOTTOM, wxSASH
\_LEFT.
71 \membersection{wxSashEvent::GetDragRect
}\label{wxsasheventgetdragrect
}
73 \constfunc{wxRect
}{GetDragRect
}{\void}
75 Returns the rectangle representing the new size the window would be if the resize was applied. It is
76 up to the application to set the window size if required.
78 \membersection{wxSashEvent::GetDragStatus
}\label{wxsasheventgetdragstatus
}
80 \constfunc{wxSashDragStatus
}{GetDragStatus
}{\void}
82 Returns the status of the sash: one of wxSASH
\_STATUS\_OK, wxSASH
\_STATUS\_OUT\_OF\_RANGE.
83 If the drag caused the notional bounding box of the window to flip over, for example, the drag will be out of rage.