]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/splitevt.tex
As per the wx-dev discussion in early Jan, replaced
[wxWidgets.git] / docs / latex / wx / splitevt.tex
CommitLineData
42e69d6b
VZ
1\section{\class{wxSplitterEvent}}\label{wxsplitterevent}
2
65e78240
VZ
3This class represents the events generated by a splitter control. Also there is
4only one event class, the data associated to the different events is not the
5same and so not all accessor functions may be called for each event. The
6documentation mentions the kind of event(s) for which the given acessor
255d88eb
UB
7function makes sense: calling it for other types of events will result
8in 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
22To process a splitter event, use these event handler macros to direct input to member
23functions 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
28position is in the process of being changed. May be used to modify the
29position of the tracking bar to properly reflect the position that
30would be set if the drag were to be completed at this point. Processes
31a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING event.}
65e78240 32\twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGED(id, func)}}{The sash
255d88eb
UB
33position was changed. May be used to modify the sash position before
34it is set, or to prevent the change from taking place.
35Processes a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED event.}
65e78240 36\twocolitem{{\bf EVT\_SPLITTER\_UNSPLIT(id, func)}}{The splitter has been just
255d88eb 37unsplit. Processes a wxEVT\_COMMAND\_SPLITTER\_UNSPLIT event.}
65e78240
VZ
38\twocolitem{{\bf EVT\_SPLITTER\_DOUBLECLICKED(id, func)}}{The sash was double
39clicked. 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 41Processes 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
58Constructor. 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 65Returns the new sash position.
e4bbf3c2
UB
66
67May only be called while processing
255d88eb 68wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and
e4bbf3c2
UB
69wxEVT\_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 76Returns the x coordinate of the double-click point.
e4bbf3c2
UB
77
78May only be called while processing
65e78240 79wxEVT\_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 86Returns the y coordinate of the double-click point.
e4bbf3c2
UB
87
88May only be called while processing
65e78240 89wxEVT\_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
95Returns a pointer to the window being removed when a splitter window
96is unsplit.
e4bbf3c2
UB
97
98May only be called while processing
65e78240 99wxEVT\_COMMAND\_SPLITTER\_UNSPLIT events.
e4bbf3c2
UB
100
101
65e78240 102\membersection{wxSplitterEvent::SetSashPosition}\label{wxsplittereventsetsashposition}
e4bbf3c2 103
07d09af8 104\func{void}{SetSashPosition}{\param{int}{ pos}}
e4bbf3c2 105
255d88eb
UB
106In the case of wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events,
107sets the the new sash position. In the case of
108wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING events, sets the new
109tracking bar position so visual feedback during dragging will
110represent that change that will actually take place. Set to -1 from
111the event handler code to prevent repositioning.
e4bbf3c2
UB
112
113May only be called while processing
255d88eb 114wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and
65e78240 115wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events.
e4bbf3c2 116
f6bcfd97 117\wxheading{Parameters}
e4bbf3c2 118
65e78240 119\docparam{pos}{New sash position.}
255d88eb 120