send END_EDIT label if label editing is cancelled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,8 +26,6 @@ functions that take a wxListEvent argument.
|
||||
\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).}
|
||||
@@ -50,12 +48,14 @@ functions that take a wxListEvent argument.
|
||||
|
||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||
|
||||
|
||||
\membersection{wxListEvent::wxListEvent}
|
||||
|
||||
\func{}{wxListEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}}
|
||||
|
||||
Constructor.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetCacheFrom}\label{wxlisteventgetcachefrom}
|
||||
|
||||
\constfunc{long}{GetCacheFrom}{\void}
|
||||
@@ -63,6 +63,7 @@ Constructor.
|
||||
For {\tt EVT\_LIST\_CACHE\_HINT} event only: return the first item which the
|
||||
list control advises us to cache.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetCacheTo}\label{wxlisteventgetcacheto}
|
||||
|
||||
\constfunc{long}{GetCacheTo}{\void}
|
||||
@@ -70,18 +71,21 @@ list control advises us to cache.
|
||||
For {\tt EVT\_LIST\_CACHE\_HINT} event only: return the last item (inclusive)
|
||||
which the list control advises us to cache.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetKeyCode}\label{wxlisteventgetkeycode}
|
||||
|
||||
\constfunc{int}{GetKeyCode}{\void}
|
||||
|
||||
Key code if the event is a keypress event.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetIndex}\label{wxlisteventgetindex}
|
||||
|
||||
\constfunc{long}{GetIndex}{\void}
|
||||
|
||||
The item index.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetColumn}\label{wxlisteventgetcolumn}
|
||||
|
||||
\constfunc{int}{GetColumn}{\void}
|
||||
@@ -91,6 +95,7 @@ dragging events, it is the column to the left of the divider being dragged, for
|
||||
the column click events it may be $-1$ if the user clicked in the list control
|
||||
header outside any column.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetPoint}\label{wxlisteventgetpoint}
|
||||
|
||||
\constfunc{wxPoint}{GetPoint}{\void}
|
||||
@@ -98,11 +103,13 @@ header outside any column.
|
||||
The position of the mouse pointer if the event is a drag event.
|
||||
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetLabel}\label{wxlisteventgetlabel}
|
||||
|
||||
\constfunc{const wxString\&}{GetLabel}{\void}
|
||||
|
||||
The label.
|
||||
The (new) item label for \texttt{EVT\_LIST\_END\_LABEL\_EDIT} event.
|
||||
|
||||
|
||||
\membersection{wxListEvent::GetText}\label{wxlisteventgettext}
|
||||
|
||||
@@ -110,24 +117,28 @@ The label.
|
||||
|
||||
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}
|
||||
@@ -135,3 +146,14 @@ The mask.
|
||||
An item object, used by some events. See also \helpref{wxListCtrl::SetItem}{wxlistctrlsetitem}.
|
||||
|
||||
|
||||
\membersection{wxListEvent::IsEditCancelled}\label{wxlisteventiseditcancelled}
|
||||
|
||||
\constfunc{bool}{IsEditCancelled}{\void}
|
||||
|
||||
This method only makes sense for \texttt{EVT\_LIST\_END\_LABEL\_EDIT} message
|
||||
and returns \true if it the label editing has been cancelled by the user
|
||||
(\helpref{GetLabel}{wxlisteventgetlabel} returns an empty string in this case
|
||||
but it doesn't allow to distinguish between really cancelling the edit and,
|
||||
admittedly rare, case when the user wants to rename it to an empty string0.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user