]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/listevt.tex
documented just added env functions
[wxWidgets.git] / docs / latex / wx / listevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxListEvent}}\label{wxlistevent}
2
3A list event holds information about events associated with wxListCtrl objects.
4
5\wxheading{Derived from}
6
86f975a8 7\helpref{wxNotifyEvent}{wxnotifyevent}\\
a660d684
KB
8\helpref{wxCommandEvent}{wxcommandevent}\\
9\helpref{wxEvent}{wxevent}\\
10\helpref{wxObject}{wxobject}
11
954b8ae6
JS
12\wxheading{Include files}
13
14<wx/listctrl.h>
15
a660d684
KB
16\wxheading{Event table macros}
17
18To process input from a list control, use these event handler macros to direct input to member
19functions that take a wxListEvent argument.
20
21\twocolwidtha{7cm}
22\begin{twocollist}\itemsep=0pt
23\twocolitem{{\bf EVT\_LIST\_BEGIN\_DRAG(id, func)}}{Begin dragging with the left mouse button.}
24\twocolitem{{\bf EVT\_LIST\_BEGIN\_RDRAG(id, func)}}{Begin dragging with the right mouse button.}
fd128b0c
RR
25\twocolitem{{\bf EVT\_LIST\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
26\twocolitem{{\bf EVT\_LIST\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
a660d684
KB
27\twocolitem{{\bf EVT\_LIST\_DELETE\_ITEM(id, func)}}{Delete an item.}
28\twocolitem{{\bf EVT\_LIST\_DELETE\_ALL\_ITEMS(id, func)}}{Delete all items.}
29\twocolitem{{\bf EVT\_LIST\_GET\_INFO(id, func)}}{Request information from the application, usually the item text.}
30\twocolitem{{\bf EVT\_LIST\_SET\_INFO(id, func)}}{Information is being supplied (not implemented).}
31\twocolitem{{\bf EVT\_LIST\_ITEM\_SELECTED(id, func)}}{The item has been selected.}
32\twocolitem{{\bf EVT\_LIST\_ITEM\_DESELECTED(id, func)}}{The item has been deselected.}
8b17ba72 33\twocolitem{{\bf EVT\_LIST\_ITEM\_ACTIVATED(id, func)}}{The item has been activated (ENTER or double click).}
a660d684
KB
34\twocolitem{{\bf EVT\_LIST\_KEY\_DOWN(id, func)}}{A key has been pressed.}
35\twocolitem{{\bf EVT\_LIST\_INSERT\_ITEM(id, func)}}{An item has been inserted.}
36\twocolitem{{\bf EVT\_LIST\_COL\_CLICK(id, func)}}{A column ({\bf m\_col}) has been left-clicked.}
37\end{twocollist}%
38
39\wxheading{See also}
40
41\helpref{wxListCtrl}{wxlistctrl}
42
43\latexignore{\rtfignore{\wxheading{Members}}}
44
45\membersection{wxListEvent::wxListEvent}
46
47\func{}{wxListEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}}
48
49Constructor.
50
f6bcfd97 51\membersection{wxListEvent::GetCode}\label{wxlisteventgetcode}
a660d684 52
f6bcfd97 53\constfunc{int}{GetCode}{\void}
a660d684
KB
54
55Key code if the event is a keypress event.
56
f6bcfd97 57\membersection{wxListEvent::GetIndex}\label{wxlisteventgetindex}
a660d684 58
f6bcfd97 59\constfunc{long}{GetIndex}{\void}
a660d684
KB
60
61The item index.
62
f6bcfd97 63\membersection{wxListEvent::GetOldIndex}\label{wxlisteventgetoldindex}
a660d684 64
f6bcfd97 65\constfunc{long}{GetOldIndex}{\void}
a660d684
KB
66
67The old item index.
68
f6bcfd97 69\membersection{wxListEvent::GetColumn}\label{wxlisteventgetcolumn}
a660d684 70
f6bcfd97 71\constfunc{int}{GetColumn}{\void}
a660d684
KB
72
73The column position.
74
f6bcfd97 75\membersection{wxListEvent::Cancelled}\label{wxlisteventcancelled}
a660d684 76
f6bcfd97 77\constfunc{bool}{Cancelled}{\void}
a660d684
KB
78
79TRUE if this event is an end edit event and the user cancelled the edit.
80
f6bcfd97 81\membersection{wxListEvent::GetPoint}\label{wxlisteventgetpoint}
a660d684 82
f6bcfd97 83\constfunc{wxPoint}{GetPoint}{\void}
a660d684
KB
84
85The position of the mouse pointer if the event is a drag event.
86
a660d684 87
f6bcfd97
BP
88\membersection{wxListEvent::GetLabel}\label{wxlisteventgetlabel}
89
90\constfunc{const wxString\&}{GetLabel}{\void}
91
92The label.
93
94\membersection{wxListEvent::GetText}\label{wxlisteventgettext}
95
96\constfunc{const wxString\&}{GetText}{\void}
97
98The text.
99
100\membersection{wxListEvent::GetImage}\label{wxlisteventgetimage}
101
102\constfunc{int}{GetImage}{\void}
103
104The image.
105
106\membersection{wxListEvent::GetData}\label{wxlisteventgetdata}
107
108\constfunc{long}{GetData}{\void}
109
110The data.
111
112\membersection{wxListEvent::GetMask}\label{wxlisteventgetmask}
113
114\constfunc{long}{GetMask}{\void}
115
116The mask.
117
118\membersection{wxListEvent::GetItem}\label{wxlisteventgetitem}
119
120\constfunc{const wxListItem\&}{GetItem}{\void}
a660d684
KB
121
122An item object, used by some events. See also \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem}.
123
124