X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb96bc75a76faa2940217c28aec2535318cd8b36..fd775aae7b8eace70d8fc41a23623505ad568355:/docs/latex/wx/treeevt.tex diff --git a/docs/latex/wx/treeevt.tex b/docs/latex/wx/treeevt.tex index e62bc7da97..dcb92fb214 100644 --- a/docs/latex/wx/treeevt.tex +++ b/docs/latex/wx/treeevt.tex @@ -18,22 +18,27 @@ A tree event holds information about events associated with wxTreeCtrl objects. To process input from a tree control, use these event handler macros to direct input to member functions that take a wxTreeEvent argument. -\twocolwidtha{7cm} +\twocolwidtha{9cm} \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\_DRAG(id, func)}}{The user has started dragging an item with the left mouse button.} +\twocolitem{{\bf EVT\_TREE\_BEGIN\_RDRAG(id, func)}}{The user has started dragging an item with the right mouse button.} \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\_END\_DRAG(id, func)}}{The user has released the mouse after dragging an item.} +\twocolitem{{\bf EVT\_TREE\_END\_LABEL\_EDIT(id, func)}}{The user has finished editing a label. This can be prevented by calling \helpref{Veto()}{wxnotifyeventveto}.} +\twocolitem{{\bf EVT\_TREE\_DELETE\_ITEM(id, func)}}{A tree item has been deleted.} +% thy're not very (or at all) useful currently +%\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\_ACTIVATED(id, func)}}{An item has been activated (e.g. double clicked).} \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\_ITEM\_RIGHT\_CLICK(id, func)}}{The user has clicked the item with the right mouse button.} +\twocolitem{{\bf EVT\_TREE\_ITEM\_MIDDLE\_CLICK(id, func)}}{The user has clicked the item with the middle mouse button.} +\twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.} \twocolitem{{\bf EVT\_TREE\_SEL\_CHANGED(id, func)}}{Selection has changed.} \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}% \wxheading{See also} @@ -48,33 +53,41 @@ functions that take a wxTreeEvent argument. Constructor. +\membersection{wxTreeEvent::GetCode} + +\constfunc{int}{GetCode}{} + +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::GetItem} \constfunc{wxTreeItemId}{GetItem}{} -Returns he item (valid for all events). +Returns the item (valid for all events). -\membersection{wxTreeEvent::GetOldItem} +\membersection{wxTreeEvent::GetKeyEvent}\label{wxtreeeventgetkeyevent} -\constfunc{wxTreeItemId}{GetOldItem}{} +\constfunc{const wxKeyEvent\&}{GetKeyEvent}{} -Returns the old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events) +Returns the key event for {\tt EVT\_TREE\_KEY\_DOWN} events. -\membersection{wxTreeEvent::GetPoint()} +\membersection{wxTreeEvent::GetLabel} -\constfunc{wxPoint}{GetPoint}{} +\constfunc{const wxString\&}{GetLabel}{} -Returns 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::GetCode} +\membersection{wxTreeEvent::GetOldItem} -\constfunc{int}{GetCode}{} +\constfunc{wxTreeItemId}{GetOldItem}{} -The key code if the event was is a key event. +Returns the old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events) -\membersection{wxTreeEvent::GetLabel} +\membersection{wxTreeEvent::GetPoint()} -\constfunc{const wxString\&}{GetLabel}{} +\constfunc{wxPoint}{GetPoint}{} -Returns the label if the event was a begin or end edit label event. +Returns the position of the mouse pointer if the event is a drag event.