]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/splitevt.tex
added wxTopLevelWindow::RequestUserAttention(); documented it and implemented it...
[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
2edb0bde 6documentation mentions the kind of event(s) for which the given accessor
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
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
23To process a splitter event, use these event handler macros to direct input to member
24functions 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
29position is in the process of being changed. You may prevent this change
30from happening by calling \helpref{Veto}{wxnotifyeventveto} or you may also
31modify the position of the tracking bar to properly reflect the position that
32would be set if the drag were to be completed at this point. Processes a
33wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING event.}
65e78240 34\twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGED(id, func)}}{The sash
255d88eb
UB
35position was changed. May be used to modify the sash position before
36it is set, or to prevent the change from taking place.
37Processes a wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED event.}
65e78240 38\twocolitem{{\bf EVT\_SPLITTER\_UNSPLIT(id, func)}}{The splitter has been just
3e58dcb9
VZ
39unsplit. Processes a wxEVT\_COMMAND\_SPLITTER\_UNSPLIT event. This event can't
40be vetoed.}
552861bf 41\twocolitem{{\bf EVT\_SPLITTER\_DCLICK(id, func)}}{The sash was double
65e78240 42clicked. 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
44won't happen if you veto this event. Processes a
45wxEVT\_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 62Constructor. 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 69Returns the new sash position.
e4bbf3c2
UB
70
71May only be called while processing
255d88eb 72wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and
e4bbf3c2
UB
73wxEVT\_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 80Returns the x coordinate of the double-click point.
e4bbf3c2
UB
81
82May only be called while processing
65e78240 83wxEVT\_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 90Returns the y coordinate of the double-click point.
e4bbf3c2
UB
91
92May only be called while processing
65e78240 93wxEVT\_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
99Returns a pointer to the window being removed when a splitter window
100is unsplit.
e4bbf3c2
UB
101
102May only be called while processing
65e78240 103wxEVT\_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
UB
110In the case of wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events,
111sets the the new sash position. In the case of
112wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING events, sets the new
113tracking bar position so visual feedback during dragging will
114represent that change that will actually take place. Set to -1 from
115the event handler code to prevent repositioning.
e4bbf3c2
UB
116
117May only be called while processing
255d88eb 118wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGING and
65e78240 119wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events.
e4bbf3c2 120
f6bcfd97 121\wxheading{Parameters}
e4bbf3c2 122
65e78240 123\docparam{pos}{New sash position.}
255d88eb 124