Search

Handlers bound for the following event types will receive a wx.adv.SashEvent parameter.

EVT_SASH_DRAGGED: Process a wxEVT_SASH_DRAGGED event, when the user has finished dragging a sash.

EVT_SASH_DRAGGED_RANGE: 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 the given range have their sashes dragged.

Note

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 wx.adv.SashWindow 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 wx.adv.SashEvent.GetDragRect to see what the new size of the window would be if the resize were to be applied. It should also call wx.adv.SashEvent.GetDragStatus to see whether the drag was wx.OK or out of the current allowed range.