wxsasheventa sash event is sent when the sash of a wxsashwindow has been dragged by the user. derived from
wxcommandevent include files <wx/sashwin.h> event table macros to process an activate event, use these event handler macros to direct input to a member function that takes a wxsashevent argument.
data structures
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 table entry 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's event handler to do that. this is because the application may have to handle other consequences of the resize, or it may wish to veto it altogether. the event handler should look at the drag rectangle: see wxsashevent::getdragrect to see what the new size of the window would be if the resize were to be applied. it should also call wxsashevent::getdragstatus to see whether the drag was ok or out of the current allowed range. see also wxsashwindow, event handling overview members
wxsashevent::wxsashevent
wxsashevent::wxsasheventwxsashevent(int id = 0, wxsashedgeposition edge = wxsash_none) constructor.
wxsashevent::getedgewxsashedgeposition getedge() const returns the dragged edge. the return value is one of wxsash_top, wxsash_right, wxsash_bottom, wxsash_left.
wxsashevent::getdragrectwxrect getdragrect() const returns the rectangle representing the new size the window would be if the resize was applied. it is up to the application to set the window size if required.
wxsashevent::getdragstatuswxsashdragstatus getdragstatus() const 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.
|