]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/listevt.tex
Added Word template for formatting wxWindows manual
[wxWidgets.git] / docs / latex / wx / listevt.tex
index e1561cda4d59032147106fb077a8982010e00099..2358a8fab537640869dd2d5d010295e7ac381264 100644 (file)
@@ -4,10 +4,15 @@ A list event holds information about events associated with wxListCtrl objects.
 
 \wxheading{Derived from}
 
+\helpref{wxNotifyEvent}{wxnotifyevent}\\
 \helpref{wxCommandEvent}{wxcommandevent}\\
 \helpref{wxEvent}{wxevent}\\
 \helpref{wxObject}{wxobject}
 
+\wxheading{Include files}
+
+<wx/listctrl.h>
+
 \wxheading{Event table macros}
 
 To process input from a list control, use these event handler macros to direct input to member
@@ -17,14 +22,15 @@ functions that take a wxListEvent argument.
 \begin{twocollist}\itemsep=0pt
 \twocolitem{{\bf EVT\_LIST\_BEGIN\_DRAG(id, func)}}{Begin dragging with the left mouse button.}
 \twocolitem{{\bf EVT\_LIST\_BEGIN\_RDRAG(id, func)}}{Begin dragging with the right mouse button.}
-\twocolitem{{\bf EVT\_LIST\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label.}
-\twocolitem{{\bf EVT\_LIST\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label.}
+\twocolitem{{\bf EVT\_LIST\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
+\twocolitem{{\bf EVT\_LIST\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.}
 \twocolitem{{\bf EVT\_LIST\_DELETE\_ITEM(id, func)}}{Delete an item.}
 \twocolitem{{\bf EVT\_LIST\_DELETE\_ALL\_ITEMS(id, func)}}{Delete all items.}
 \twocolitem{{\bf EVT\_LIST\_GET\_INFO(id, func)}}{Request information from the application, usually the item text.}
 \twocolitem{{\bf EVT\_LIST\_SET\_INFO(id, func)}}{Information is being supplied (not implemented).}
 \twocolitem{{\bf EVT\_LIST\_ITEM\_SELECTED(id, func)}}{The item has been selected.}
 \twocolitem{{\bf EVT\_LIST\_ITEM\_DESELECTED(id, func)}}{The item has been deselected.}
+\twocolitem{{\bf EVT\_LIST\_ITEM\_ACTIVATED(id, func)}}{The item has been activated (ENTER or double click).}
 \twocolitem{{\bf EVT\_LIST\_KEY\_DOWN(id, func)}}{A key has been pressed.}
 \twocolitem{{\bf EVT\_LIST\_INSERT\_ITEM(id, func)}}{An item has been inserted.}
 \twocolitem{{\bf EVT\_LIST\_COL\_CLICK(id, func)}}{A column ({\bf m\_col}) has been left-clicked.}
@@ -42,45 +48,76 @@ functions that take a wxListEvent argument.
 
 Constructor.
 
-\membersection{wxListEvent::m\_code}
+\membersection{wxListEvent::GetCode}\label{wxlisteventgetcode}
 
-\member{int}{m\_code}
+\constfunc{int}{GetCode}{\void}
 
 Key code if the event is a keypress event.
 
-\membersection{wxListEvent::m\_itemIndex}
+\membersection{wxListEvent::GetIndex}\label{wxlisteventgetindex}
 
-\member{long}{m\_itemIndex}
+\constfunc{long}{GetIndex}{\void}
 
 The item index.
 
-\membersection{wxListEvent::m\_oldItemIndex}
+\membersection{wxListEvent::GetOldIndex}\label{wxlisteventgetoldindex}
 
-\member{long}{m\_oldItemIndex}
+\constfunc{long}{GetOldIndex}{\void}
 
 The old item index.
 
-\membersection{wxListEvent::m\_col}
+\membersection{wxListEvent::GetColumn}\label{wxlisteventgetcolumn}
 
-\member{int}{m\_col}
+\constfunc{int}{GetColumn}{\void}
 
 The column position.
 
-\membersection{wxListEvent::m\_cancelled}
+\membersection{wxListEvent::Cancelled}\label{wxlisteventcancelled}
 
-\member{bool}{m\_cancelled}
+\constfunc{bool}{Cancelled}{\void}
 
 TRUE if this event is an end edit event and the user cancelled the edit.
 
-\membersection{wxListEvent::m\_pointDrag}
+\membersection{wxListEvent::GetPoint}\label{wxlisteventgetpoint}
 
-\member{wxPoint}{m\_pointDrag}
+\constfunc{wxPoint}{GetPoint}{\void}
 
 The position of the mouse pointer if the event is a drag event.
 
-\membersection{wxListEvent::m\_item}
 
-\member{wxListItem}{m\_item}
+\membersection{wxListEvent::GetLabel}\label{wxlisteventgetlabel}
+
+\constfunc{const wxString\&}{GetLabel}{\void}
+
+The label.
+
+\membersection{wxListEvent::GetText}\label{wxlisteventgettext}
+
+\constfunc{const wxString\&}{GetText}{\void}
+
+The text.
+
+\membersection{wxListEvent::GetImage}\label{wxlisteventgetimage}
+
+\constfunc{int}{GetImage}{\void}
+
+The image.
+
+\membersection{wxListEvent::GetData}\label{wxlisteventgetdata}
+
+\constfunc{long}{GetData}{\void}
+
+The data.
+
+\membersection{wxListEvent::GetMask}\label{wxlisteventgetmask}
+
+\constfunc{long}{GetMask}{\void}
+
+The mask.
+
+\membersection{wxListEvent::GetItem}\label{wxlisteventgetitem}
+
+\constfunc{const wxListItem\&}{GetItem}{\void}
 
 An item object, used by some events. See also \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem}.