]>
Commit | Line | Data |
---|---|---|
42e69d6b VZ |
1 | \section{\class{wxSplitterEvent}}\label{wxsplitterevent} |
2 | ||
65e78240 VZ |
3 | This class represents the events generated by a splitter control. Also there is |
4 | only one event class, the data associated to the different events is not the | |
5 | same and so not all accessor functions may be called for each event. The | |
2edb0bde | 6 | documentation mentions the kind of event(s) for which the given accessor |
255d88eb UB |
7 | function makes sense: calling it for other types of events will result |
8 | in assert failure (in debug mode) and will return meaningless results. | |
42e69d6b VZ |
9 | |
10 | \wxheading{Derived from} | |
11 | ||
3e58dcb9 | 12 | \helpref{wxNotifyEvent}{wxnotifyevent}\\ |
42e69d6b VZ |
13 | \helpref{wxCommandEvent}{wxcommandevent}\\ |
14 | \helpref{wxEvent}{wxevent}\\ | |
42e69d6b VZ |
15 | \helpref{wxObject}{wxobject} |
16 | ||
17 | \wxheading{Include files} | |
18 | ||
19 | <wx/splitter.h> | |
20 | ||
21 | \wxheading{Event table macros} | |
22 | ||
23 | To process a splitter event, use these event handler macros to direct input to member | |
24 | functions that take a wxSplitterEvent argument. | |
25 | ||
65e78240 | 26 | \twocolwidtha{10cm} |
42e69d6b | 27 | \begin{twocollist}\itemsep=0pt |
255d88eb | 28 | \twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGING(id, func)}}{The sash |
3e58dcb9 VZ |
29 | position is in the process of being changed. You may prevent this change |
30 | from happening by calling \helpref{Veto}{wxnotifyeventveto} or you may also | |
31 | modify the position of the tracking bar to properly reflect the position that | |
32 | would be set if the drag were to be completed at this point. Processes a | |
33 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING event.} | |
65e78240 | 34 | \twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGED(id, func)}}{The sash |
9ec0e7da VZ |
35 | position was changed. This event is generated after the user releases the mouse |
36 | after dragging the splitter. | |
255d88eb | 37 | Processes a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED event.} |
65e78240 | 38 | \twocolitem{{\bf EVT\_SPLITTER\_UNSPLIT(id, func)}}{The splitter has been just |
3e58dcb9 VZ |
39 | unsplit. Processes a wxEVT\_COMMAND\_SPLITTER\_UNSPLIT event. This event can't |
40 | be vetoed.} | |
552861bf | 41 | \twocolitem{{\bf EVT\_SPLITTER\_DCLICK(id, func)}}{The sash was double |
65e78240 | 42 | clicked. The default behaviour is to unsplit the window when this happens |
3e58dcb9 VZ |
43 | (unless the minimum pane size has been set to a value greater than zero). This |
44 | won't happen if you veto this event. Processes a | |
45 | wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED event.} | |
42e69d6b VZ |
46 | \end{twocollist}% |
47 | ||
48 | \wxheading{See also} | |
49 | ||
e4bbf3c2 UB |
50 | \helpref{wxSplitterWindow}{wxsplitterwindow},\rtfsp |
51 | \helpref{Event handling overview}{eventhandlingoverview} | |
42e69d6b | 52 | |
255d88eb | 53 | |
42e69d6b VZ |
54 | \latexignore{\rtfignore{\wxheading{Members}}} |
55 | ||
255d88eb | 56 | |
42e69d6b VZ |
57 | \membersection{wxSplitterEvent::wxSplitterEvent}\label{wxsplittereventconstr} |
58 | ||
59 | \func{}{wxSplitterEvent}{\param{wxEventType}{ eventType = wxEVT\_NULL}, | |
60 | \param{wxSplitterWindow *}{ splitter = NULL}} | |
61 | ||
fc2171bd | 62 | Constructor. Used internally by wxWidgets only. |
42e69d6b | 63 | |
255d88eb | 64 | |
65e78240 | 65 | \membersection{wxSplitterEvent::GetSashPosition}\label{wxsplittereventgetsashposition} |
e4bbf3c2 | 66 | |
65e78240 | 67 | \constfunc{int}{GetSashPosition}{\void} |
e4bbf3c2 | 68 | |
65e78240 | 69 | Returns the new sash position. |
e4bbf3c2 UB |
70 | |
71 | May only be called while processing | |
255d88eb | 72 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and |
e4bbf3c2 UB |
73 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events. |
74 | ||
e4bbf3c2 | 75 | |
65e78240 | 76 | \membersection{wxSplitterEvent::GetX}\label{wxsplittereventgetx} |
e4bbf3c2 | 77 | |
65e78240 | 78 | \constfunc{int}{GetX}{\void} |
e4bbf3c2 | 79 | |
65e78240 | 80 | Returns the x coordinate of the double-click point. |
e4bbf3c2 UB |
81 | |
82 | May only be called while processing | |
65e78240 | 83 | wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events. |
e4bbf3c2 UB |
84 | |
85 | ||
65e78240 | 86 | \membersection{wxSplitterEvent::GetY}\label{wxsplittereventgety} |
e4bbf3c2 | 87 | |
65e78240 | 88 | \constfunc{int}{GetY}{\void} |
e4bbf3c2 | 89 | |
65e78240 | 90 | Returns the y coordinate of the double-click point. |
e4bbf3c2 UB |
91 | |
92 | May only be called while processing | |
65e78240 | 93 | wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events. |
e4bbf3c2 | 94 | |
65e78240 | 95 | \membersection{wxSplitterEvent::GetWindowBeingRemoved}\label{wxsplittereventgetwindowbeingremoved} |
e4bbf3c2 | 96 | |
65e78240 | 97 | \constfunc{wxWindow*}{GetWindowBeingRemoved}{\void} |
e4bbf3c2 | 98 | |
65e78240 VZ |
99 | Returns a pointer to the window being removed when a splitter window |
100 | is unsplit. | |
e4bbf3c2 UB |
101 | |
102 | May only be called while processing | |
65e78240 | 103 | wxEVT\_COMMAND\_SPLITTER\_UNSPLIT events. |
e4bbf3c2 UB |
104 | |
105 | ||
65e78240 | 106 | \membersection{wxSplitterEvent::SetSashPosition}\label{wxsplittereventsetsashposition} |
e4bbf3c2 | 107 | |
07d09af8 | 108 | \func{void}{SetSashPosition}{\param{int}{ pos}} |
e4bbf3c2 | 109 | |
255d88eb | 110 | In the case of wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events, |
43e8916f | 111 | sets the new sash position. In the case of |
255d88eb UB |
112 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING events, sets the new |
113 | tracking bar position so visual feedback during dragging will | |
114 | represent that change that will actually take place. Set to -1 from | |
115 | the event handler code to prevent repositioning. | |
e4bbf3c2 UB |
116 | |
117 | May only be called while processing | |
255d88eb | 118 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and |
65e78240 | 119 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events. |
e4bbf3c2 | 120 | |
f6bcfd97 | 121 | \wxheading{Parameters} |
e4bbf3c2 | 122 | |
65e78240 | 123 | \docparam{pos}{New sash position.} |
255d88eb | 124 |