wxsplittereventthis class represents the events generated by a splitter control. also there is only one event class, the data associated to the different events is not the same and so not all accessor functions may be called for each event. the documentation mentions the kind of event(s) for which the given accessor function makes sense: calling it for other types of events will result in assert failure (in debug mode) and will return meaningless results. derived from
wxnotifyevent include files <wx/splitter.h> event table macros to process a splitter event, use these event handler macros to direct input to member functions that take a wxsplitterevent argument.
wxsplitterwindow, event handling overview members
wxsplitterevent::wxsplitterevent
wxsplitterevent::wxsplittereventwxsplitterevent(wxeventtype eventtype = wxevt_null, wxsplitterwindow * splitter = null) constructor. used internally by wxwidgets only.
wxsplitterevent::getsashpositionint getsashposition() const returns the new sash position. may only be called while processing wxevt_command_splitter_sash_pos_changing and wxevt_command_splitter_sash_pos_changed events.
wxsplitterevent::getxint getx() const returns the x coordinate of the double-click point. may only be called while processing wxevt_command_splitter_doubleclicked events.
wxsplitterevent::getyint gety() const returns the y coordinate of the double-click point. may only be called while processing wxevt_command_splitter_doubleclicked events.
wxsplitterevent::getwindowbeingremovedwxwindow* getwindowbeingremoved() const returns a pointer to the window being removed when a splitter window is unsplit. may only be called while processing wxevt_command_splitter_unsplit events.
wxsplitterevent::setsashpositionvoid setsashposition(int pos) in the case of wxevt_command_splitter_sash_pos_changed events, sets the new sash position. in the case of wxevt_command_splitter_sash_pos_changing events, sets the new tracking bar position so visual feedback during dragging will represent that change that will actually take place. set to -1 from the event handler code to prevent repositioning. may only be called while processing wxevt_command_splitter_sash_pos_changing and wxevt_command_splitter_sash_pos_changed events. parameters pos
|