]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/splitevt.tex
documented wxCONFIG_USE_RELATIVE_PATH
[wxWidgets.git] / docs / latex / wx / splitevt.tex
... / ...
CommitLineData
1\section{\class{wxSplitterEvent}}\label{wxsplitterevent}
2
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
7function makes sense - calling it for other types of events will result in
8assert failure (in debug mode) and will return meaningless results.
9
10\wxheading{Derived from}
11
12\helpref{wxCommandEvent}{wxcommandevent}\\
13\helpref{wxEvent}{wxevent}\\
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
25\twocolwidtha{10cm}
26\begin{twocollist}\itemsep=0pt
27\twocolitem{{\bf EVT\_SPLITTER\_SASH\_POS\_CHANGED(id, func)}}{The sash
28position was changed. May be used to prevent the change from taking place.
29Processes wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED event.}
30\twocolitem{{\bf EVT\_SPLITTER\_UNSPLIT(id, func)}}{The splitter has been just
31unsplit. Processes wxEVT\_COMMAND\_SPLITTER\_UNSPLIT event.}
32\twocolitem{{\bf EVT\_SPLITTER\_DOUBLECLICKED(id, func)}}{The sash was double
33clicked. The default behaviour is to unsplit the window when this happens
34(unless the minimum pane size has been set to a value greater than zero).
35Processes wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED event}
36\end{twocollist}%
37
38\wxheading{See also}
39
40\helpref{wxSplitterWindow}{wxsplitterwindow},\rtfsp
41\helpref{Event handling overview}{eventhandlingoverview}
42
43\latexignore{\rtfignore{\wxheading{Members}}}
44
45\membersection{wxSplitterEvent::wxSplitterEvent}\label{wxsplittereventconstr}
46
47\func{}{wxSplitterEvent}{\param{wxEventType}{ eventType = wxEVT\_NULL},
48 \param{wxSplitterWindow *}{ splitter = NULL}}
49
50Constructor. Used internally by wxWindows only.
51
52\membersection{wxSplitterEvent::GetSashPosition}\label{wxsplittereventgetsashposition}
53
54\constfunc{int}{GetSashPosition}{\void}
55
56Returns the new sash position.
57
58May only be called while processing
59wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events.
60
61
62\membersection{wxSplitterEvent::GetX}\label{wxsplittereventgetx}
63
64\constfunc{int}{GetX}{\void}
65
66Returns the x coordinate of the double-click point.
67
68May only be called while processing
69wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events.
70
71
72\membersection{wxSplitterEvent::GetY}\label{wxsplittereventgety}
73
74\constfunc{int}{GetY}{\void}
75
76Returns the y coordinate of the double-click point.
77
78May only be called while processing
79wxEVT\_COMMAND\_SPLITTER\_DOUBLECLICKED events.
80
81\membersection{wxSplitterEvent::GetWindowBeingRemoved}\label{wxsplittereventgetwindowbeingremoved}
82
83\constfunc{wxWindow*}{GetWindowBeingRemoved}{\void}
84
85Returns a pointer to the window being removed when a splitter window
86is unsplit.
87
88May only be called while processing
89wxEVT\_COMMAND\_SPLITTER\_UNSPLIT events.
90
91
92\membersection{wxSplitterEvent::SetSashPosition}\label{wxsplittereventsetsashposition}
93
94\func{void}{SetSashPosition}{\param{int}{pos}}
95
96Sets the new sash position. Set to -1 from the event handler code to prevent
97the sash from repositioning.
98
99May only be called while processing
100wxEVT\_COMMAND\_SPLITTER\_SASH\_POS\_CHANGED events.
101
102\wxheading{Paramters}
103
104\docparam{pos}{New sash position.}