EditLabel fixes (wxMSW/wxGTK synchronised, docs updated)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,11 +147,18 @@ Deletes all the items in the list control.
|
||||
|
||||
Deletes a column.
|
||||
|
||||
\membersection{wxListCtrl::Edit}\label{wxlistctrledit}
|
||||
\membersection{wxListCtrl::EditLabel}\label{wxlistctrledit}
|
||||
|
||||
\func{wxTextCtrl\&}{Edit}{\param{long }{item}}
|
||||
\func{wxTextCtrl *}{Edit}{\param{long }{item}}
|
||||
|
||||
Starts editing a label.
|
||||
Starts editing the label of the given item, returning the text control that
|
||||
the tree control uses for editing. This function generates a
|
||||
EVT\_LIST\_BEGIN\_LABEL\_EDIT event and if the event handler returns FALSE, label
|
||||
editing will not start and NULL will be returned - be ready to handle this
|
||||
case.
|
||||
|
||||
The text control returned should not be deleted by the application and is not
|
||||
valid any longer after the EVT\_LIST\_END\_LABEL\_EDIT event is received.
|
||||
|
||||
\membersection{wxListCtrl::EnsureVisible}\label{wxlistctrlensurevisible}
|
||||
|
||||
|
@@ -4,6 +4,7 @@ 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}
|
||||
|
@@ -149,20 +149,21 @@ Deletes all the items in the control.
|
||||
|
||||
\membersection{wxTreeCtrl::EditLabel}\label{wxtreectrleditlabel}
|
||||
|
||||
\func{wxTextCtrl*}{EditLabel}{\param{const wxTreeItemId\&}{ item}, \param{wxClassInfo*}{ textControlClass = CLASSINFO(wxTextCtrl)}}
|
||||
\func{wxTextCtrl*}{EditLabel}{\param{const wxTreeItemId\&}{ item}}
|
||||
|
||||
Starts editing the label of the given item, returning the text control that the tree control uses for editing.
|
||||
Starts editing the label of the given item, returning the text control that
|
||||
the tree control uses for editing. This function generates a
|
||||
EVT\_BEGIN\_LABEL\_EDIT event and if the event handler returns FALSE, label
|
||||
editing will not start and NULL will be returned - be ready to handle this
|
||||
case.
|
||||
|
||||
Pass another {\it textControlClass} if a derived class is required. It usually will be, in order for
|
||||
the application to detect when editing has finished and to call \helpref{wxTreeCtrl::EndEditLabel}{wxtreectrlendeditlabel}.
|
||||
|
||||
Do not delete the text control yourself.
|
||||
|
||||
This function is currently supported under Windows only.
|
||||
The text control returned should not be deleted by the application and is not
|
||||
valid any longer after the EVT\_END\_LABEL\_EDIT event is received.
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxTreeCtrl::EndEditLabel}{wxtreectrlendeditlabel}
|
||||
\helpref{wxTreeCtrl::EndEditLabel}{wxtreectrlendeditlabel},
|
||||
\helpref{wxTreeEvent}{wxtreeevent}
|
||||
|
||||
\membersection{wxTreeCtrl::EndEditLabel}\label{wxtreectrlendeditlabel}
|
||||
|
||||
|
@@ -4,6 +4,7 @@ A tree event holds information about events associated with wxTreeCtrl objects.
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
\helpref{wxNotifyEvent}{wxnotifyevent}\\
|
||||
\helpref{wxCommandEvent}{wxcommandevent}\\
|
||||
\helpref{wxEvent}{wxevent}\\
|
||||
\helpref{wxObject}{wxobject}
|
||||
@@ -33,6 +34,12 @@ functions that take a wxTreeEvent argument.
|
||||
\twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.}
|
||||
\end{twocollist}%
|
||||
|
||||
For the EVT\_TREE\_BEGIN\_EDIT, EVT\_TREE\_END\_LABEL\_EDIT,
|
||||
EVT\_TREE\_ITEM\_EXPANDING and EVT\_TREE\_SEL\_CHANGING events you may call
|
||||
\helpref{Veto()}{wxnotifyeventveto} to prevent the given operation from
|
||||
happening except for EVT\_TREE\_END\_LABEL\_EDIT means that the items label
|
||||
will not be changed.
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxTreeCtrl}{wxtreectrl}
|
||||
@@ -55,13 +62,13 @@ Key code if the event is a keypress event.
|
||||
|
||||
\member{wxTreeItem}{m\_item}
|
||||
|
||||
The item.
|
||||
The item (valid for all events).
|
||||
|
||||
\membersection{wxTreeEvent::m\_oldItem}
|
||||
|
||||
\member{long}{m\_oldItem}
|
||||
|
||||
The old item index.
|
||||
The old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events)
|
||||
|
||||
\membersection{wxTreeEvent::m\_pointDrag}
|
||||
|
||||
|
Reference in New Issue
Block a user