\section{\class{wxListEvent}}\label{wxlistevent}

A list event holds information about events associated with wxListCtrl objects.

\wxheading{Derived from}

\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
functions that take a wxListEvent argument.

\twocolwidtha{7cm}
\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\_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\_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.}
\end{twocollist}%

\wxheading{See also}

\helpref{wxListCtrl}{wxlistctrl}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxListEvent::wxListEvent}

\func{}{wxListEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}}

Constructor.

\membersection{wxListEvent::m\_code}

\member{int}{m\_code}

Key code if the event is a keypress event.

\membersection{wxListEvent::m\_itemIndex}

\member{long}{m\_itemIndex}

The item index.

\membersection{wxListEvent::m\_oldItemIndex}

\member{long}{m\_oldItemIndex}

The old item index.

\membersection{wxListEvent::m\_col}

\member{int}{m\_col}

The column position.

\membersection{wxListEvent::m\_cancelled}

\member{bool}{m\_cancelled}

TRUE if this event is an end edit event and the user cancelled the edit.

\membersection{wxListEvent::m\_pointDrag}

\member{wxPoint}{m\_pointDrag}

The position of the mouse pointer if the event is a drag event.

\membersection{wxListEvent::m\_item}

\member{wxListItem}{m\_item}

An item object, used by some events. See also \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem}.


