]>
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 | |
6 | documentation mentions the kind of event(s) for which the given acessor | |
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 | ||
12 | \helpref{wxCommandEvent}{wxcommandevent}\\ | |
13 | \helpref{wxEvent}{wxevent}\\ | |
42e69d6b VZ |
14 | \helpref{wxObject}{wxobject} |
15 | ||
16 | \wxheading{Include files} | |
17 | ||
18 | <wx/splitter.h> | |
19 | ||
20 | \wxheading{Event table macros} | |
21 | ||
22 | To process a splitter event, use these event handler macros to direct input to member | |
23 | functions that take a wxSplitterEvent argument. | |
24 | ||
65e78240 | 25 | \twocolwidtha{10cm} |
42e69d6b | 26 | \begin{twocollist}\itemsep=0pt |
255d88eb UB |
27 | \twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGING(id, func)}}{The sash |
28 | position is in the process of being changed. May be used to modify the | |
29 | position of the tracking bar to properly reflect the position that | |
30 | would be set if the drag were to be completed at this point. Processes | |
31 | a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING event.} | |
65e78240 | 32 | \twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGED(id, func)}}{The sash |
255d88eb UB |
33 | position was changed. May be used to modify the sash position before |
34 | it is set, or to prevent the change from taking place. | |
35 | Processes a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED event.} | |
65e78240 | 36 | \twocolitem{{\bf EVT\_SPLITTER\_UNSPLIT(id, func)}}{The splitter has been just |
255d88eb | 37 | unsplit. Processes a wxEVT\_COMMAND\_SPLITTER\_UNSPLIT event.} |
65e78240 VZ |
38 | \twocolitem{{\bf EVT\_SPLITTER\_DOUBLECLICKED(id, func)}}{The sash was double |
39 | clicked. The default behaviour is to unsplit the window when this happens | |
40 | (unless the minimum pane size has been set to a value greater than zero). | |
255d88eb | 41 | Processes a wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED event.} |
42e69d6b VZ |
42 | \end{twocollist}% |
43 | ||
44 | \wxheading{See also} | |
45 | ||
e4bbf3c2 UB |
46 | \helpref{wxSplitterWindow}{wxsplitterwindow},\rtfsp |
47 | \helpref{Event handling overview}{eventhandlingoverview} | |
42e69d6b | 48 | |
255d88eb | 49 | |
42e69d6b VZ |
50 | \latexignore{\rtfignore{\wxheading{Members}}} |
51 | ||
255d88eb | 52 | |
42e69d6b VZ |
53 | \membersection{wxSplitterEvent::wxSplitterEvent}\label{wxsplittereventconstr} |
54 | ||
55 | \func{}{wxSplitterEvent}{\param{wxEventType}{ eventType = wxEVT\_NULL}, | |
56 | \param{wxSplitterWindow *}{ splitter = NULL}} | |
57 | ||
58 | Constructor. Used internally by wxWindows only. | |
59 | ||
255d88eb | 60 | |
65e78240 | 61 | \membersection{wxSplitterEvent::GetSashPosition}\label{wxsplittereventgetsashposition} |
e4bbf3c2 | 62 | |
65e78240 | 63 | \constfunc{int}{GetSashPosition}{\void} |
e4bbf3c2 | 64 | |
65e78240 | 65 | Returns the new sash position. |
e4bbf3c2 UB |
66 | |
67 | May only be called while processing | |
255d88eb | 68 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and |
e4bbf3c2 UB |
69 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events. |
70 | ||
e4bbf3c2 | 71 | |
65e78240 | 72 | \membersection{wxSplitterEvent::GetX}\label{wxsplittereventgetx} |
e4bbf3c2 | 73 | |
65e78240 | 74 | \constfunc{int}{GetX}{\void} |
e4bbf3c2 | 75 | |
65e78240 | 76 | Returns the x coordinate of the double-click point. |
e4bbf3c2 UB |
77 | |
78 | May only be called while processing | |
65e78240 | 79 | wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events. |
e4bbf3c2 UB |
80 | |
81 | ||
65e78240 | 82 | \membersection{wxSplitterEvent::GetY}\label{wxsplittereventgety} |
e4bbf3c2 | 83 | |
65e78240 | 84 | \constfunc{int}{GetY}{\void} |
e4bbf3c2 | 85 | |
65e78240 | 86 | Returns the y coordinate of the double-click point. |
e4bbf3c2 UB |
87 | |
88 | May only be called while processing | |
65e78240 | 89 | wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events. |
e4bbf3c2 | 90 | |
65e78240 | 91 | \membersection{wxSplitterEvent::GetWindowBeingRemoved}\label{wxsplittereventgetwindowbeingremoved} |
e4bbf3c2 | 92 | |
65e78240 | 93 | \constfunc{wxWindow*}{GetWindowBeingRemoved}{\void} |
e4bbf3c2 | 94 | |
65e78240 VZ |
95 | Returns a pointer to the window being removed when a splitter window |
96 | is unsplit. | |
e4bbf3c2 UB |
97 | |
98 | May only be called while processing | |
65e78240 | 99 | wxEVT\_COMMAND\_SPLITTER\_UNSPLIT events. |
e4bbf3c2 UB |
100 | |
101 | ||
65e78240 | 102 | \membersection{wxSplitterEvent::SetSashPosition}\label{wxsplittereventsetsashposition} |
e4bbf3c2 | 103 | |
65e78240 | 104 | \func{void}{SetSashPosition}{\param{int}{pos}} |
e4bbf3c2 | 105 | |
255d88eb UB |
106 | In the case of wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events, |
107 | sets the the new sash position. In the case of | |
108 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING events, sets the new | |
109 | tracking bar position so visual feedback during dragging will | |
110 | represent that change that will actually take place. Set to -1 from | |
111 | the event handler code to prevent repositioning. | |
e4bbf3c2 UB |
112 | |
113 | May only be called while processing | |
255d88eb | 114 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and |
65e78240 | 115 | wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events. |
e4bbf3c2 | 116 | |
65e78240 | 117 | \wxheading{Paramters} |
e4bbf3c2 | 118 | |
65e78240 | 119 | \docparam{pos}{New sash position.} |
255d88eb | 120 |