X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/154b6b0f0eda0007d7ffbbfacff7e57c5861c28b..74fe973bba96bbc36abe8fda44ae23bebcd7a4cc:/docs/latex/wx/treeevt.tex diff --git a/docs/latex/wx/treeevt.tex b/docs/latex/wx/treeevt.tex index 2cbff24f5b..4471a2a85b 100644 --- a/docs/latex/wx/treeevt.tex +++ b/docs/latex/wx/treeevt.tex @@ -52,11 +52,13 @@ is being given to the application (call wxTreeEvent::SetToolTip). Windows only.} \latexignore{\rtfignore{\wxheading{Members}}} + \membersection{wxTreeEvent::wxTreeEvent}\label{wxtreeeventctor} -\func{}{wxTreeEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}} +\func{}{wxTreeEvent}{\param{wxEventType }{commandType}, \param{wxTreeCtrl *}{tree}, \param{const wxTreeItemId\&}{item = wxTreeItemId()}} + +Constructor, used by wxWidgets itself only. -Constructor. \membersection{wxTreeEvent::GetKeyCode}\label{wxtreeeventgetkeycode} @@ -66,43 +68,52 @@ Returns the key code if the event 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}\label{wxtreeeventgetitem} \constfunc{wxTreeItemId}{GetItem}{} Returns the item (valid for all events). + \membersection{wxTreeEvent::GetKeyEvent}\label{wxtreeeventgetkeyevent} \constfunc{const wxKeyEvent\&}{GetKeyEvent}{} Returns the key event for {\tt EVT\_TREE\_KEY\_DOWN} events. + \membersection{wxTreeEvent::GetLabel}\label{wxtreeeventgetlabel} \constfunc{const wxString\&}{GetLabel}{} Returns the label if the event is a begin or end edit label event. + \membersection{wxTreeEvent::GetOldItem}\label{wxtreeeventgetolditem} \constfunc{wxTreeItemId}{GetOldItem}{} Returns the old item index (valid for EVT\_TREE\_ITEM\_CHANGING and CHANGED events) -\membersection{wxTreeEvent::GetPoint()}\label{wxtreeeventgetpoint} + +\membersection{wxTreeEvent::GetPoint}\label{wxtreeeventgetpoint} \constfunc{wxPoint}{GetPoint}{} -Returns the position of the mouse pointer if the event is a drag event. +Returns the position of the mouse pointer if the event is a drag or menu-context event. +In both cases the position is in client coordinates - i.e. relative to the wxTreeCtrl +window (so that you can pass it directly to e.g. \helpref{wxWindow::PopupMenu}{wxwindowpopupmenu}). -\membersection{wxTreeEvent::IsEditCancelled()}\label{wxtreeeventiseditcancelled} + +\membersection{wxTreeEvent::IsEditCancelled}\label{wxtreeeventiseditcancelled} \constfunc{bool}{IsEditCancelled}{} Returns true if the label edit was cancelled. This should be called from within an EVT\_TREE\_END\_LABEL\_EDIT handler. + \membersection{wxTreeEvent::SetToolTip}\label{wxtreeeventsettooltip} \func{void}{SetToolTip}{\param{const wxString\&}{ tooltip}}