X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954b8ae60391d18b87a604e7919c87c0c6ae208b..268766dd1f2a2d4d593d1d65893f62b5753ff20b:/docs/latex/wx/treeevt.tex diff --git a/docs/latex/wx/treeevt.tex b/docs/latex/wx/treeevt.tex index 02188ac288..666dfb1595 100644 --- a/docs/latex/wx/treeevt.tex +++ b/docs/latex/wx/treeevt.tex @@ -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} @@ -21,15 +22,17 @@ functions that take a wxTreeEvent argument. \begin{twocollist}\itemsep=0pt \twocolitem{{\bf EVT\_TREE\_BEGIN\_DRAG(id, func)}}{Begin dragging with the left mouse button.} \twocolitem{{\bf EVT\_TREE\_BEGIN\_RDRAG(id, func)}}{Begin dragging with the right mouse button.} -\twocolitem{{\bf EVT\_TREE\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label.} -\twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label.} +\twocolitem{{\bf EVT\_TREE\_BEGIN\_LABEL\_EDIT(id, func)}}{Begin editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} +\twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{Finish editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} \twocolitem{{\bf EVT\_TREE\_DELETE\_ITEM(id, func)}}{Delete an item.} \twocolitem{{\bf EVT\_TREE\_GET\_INFO(id, func)}}{Request information from the application.} \twocolitem{{\bf EVT\_TREE\_SET\_INFO(id, func)}}{Information is being supplied.} -\twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDED(id, func)}}{Parent has been expanded.} -\twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDING(id, func)}}{Parent is being expanded.} +\twocolitem{{\bf EVT\_TREE\_ITEM\_COLLAPSED(id, func)}}{The item has been collapsed.} +\twocolitem{{\bf EVT\_TREE\_ITEM\_COLLAPSING(id, func)}}{The item is being collapsed. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} +\twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDED(id, func)}}{The item has been expanded.} +\twocolitem{{\bf EVT\_TREE\_ITEM\_EXPANDING(id, func)}}{The item is being expanded. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} \twocolitem{{\bf EVT\_TREE\_SEL\_CHANGED(id, func)}}{Selection has changed.} -\twocolitem{{\bf EVT\_TREE\_SEL\_CHANGING(id, func)}}{Selection is changing.} +\twocolitem{{\bf EVT\_TREE\_SEL\_CHANGING(id, func)}}{Selection is changing. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} \twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.} \end{twocollist}% @@ -45,27 +48,41 @@ functions that take a wxTreeEvent argument. Constructor. -\membersection{wxTreeEvent::m\_code} +\membersection{wxTreeEvent::GetCode} -\member{int}{m\_code} +\constfunc{int}{GetCode}{} -Key code if the event is a keypress event. +Returns the key code if the event was is a key event. Use +\helpref{GetKeyEvent}{wxtreeeventgetkeyevent} to get the values of the +modifier keys for this event (i.e. Shift or Ctrl). -\membersection{wxTreeEvent::m\_itemIndex} +\membersection{wxTreeEvent::GetItem} -\member{wxTreeItem}{m\_item} +\constfunc{wxTreeItemId}{GetItem}{} -The item. +Returns he item (valid for all events). -\membersection{wxTreeEvent::m\_oldItem} +\membersection{wxTreeEvent::GetKeyEvent}\label{wxtreeeventgetkeyevent} -\member{long}{m\_oldItem} +\constfunc{const wxKeyEvent\&}{GetKeyEvent}{} -The old item index. +Returns the key event for {\tt EVT\_TREE\_KEY\_DOWN} events. -\membersection{wxTreeEvent::m\_pointDrag} +\membersection{wxTreeEvent::GetLabel} -\member{wxPoint}{m\_pointDrag} +\constfunc{const wxString\&}{GetLabel}{} -The position of the mouse pointer if the event is a drag event. +Returns the label if the event was a begin or end edit label event. + +\membersection{wxTreeEvent::GetOldItem} + +\constfunc{wxTreeItemId}{GetOldItem}{} + +Returns the old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events) + +\membersection{wxTreeEvent::GetPoint()} + +\constfunc{wxPoint}{GetPoint}{} + +Returns the position of the mouse pointer if the event is a drag event.