X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/156194e1d525407e90c21552f8f7aa05756e0ddc..3cc305b2b4a0674c56c84d7088cfd70676b850f0:/docs/latex/wx/treeevt.tex

diff --git a/docs/latex/wx/treeevt.tex b/docs/latex/wx/treeevt.tex
index eb4aadce57..4471a2a85b 100644
--- a/docs/latex/wx/treeevt.tex
+++ b/docs/latex/wx/treeevt.tex
@@ -26,7 +26,7 @@ functions that take a wxTreeEvent argument.
 \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
+% they'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).}
@@ -42,7 +42,9 @@ functions that take a wxTreeEvent argument.
 \twocolitem{{\bf EVT\_TREE\_KEY\_DOWN(id, func)}}{A key has been pressed.}
 \twocolitem{{\bf EVT\_TREE\_ITEM\_GETTOOLTIP(id, func)}}{The opportunity to set the item tooltip
 is being given to the application (call wxTreeEvent::SetToolTip). Windows only.}
-\end{twocollist}%
+\twocolitem{{\bf EVT\_TREE\_ITEM\_MENU(id, func)}}{The context menu for the selected item has been requested, either by a right click or by using the menu key.}
+\twocolitem{{\bf EVT\_TREE\_STATE\_IMAGE\_CLICK(id, func)}}{The state image has been clicked. Windows only.}
+\end{twocollist}
 
 \wxheading{See also}
 
@@ -50,58 +52,69 @@ is being given to the application (call wxTreeEvent::SetToolTip). Windows only.}
 
 \latexignore{\rtfignore{\wxheading{Members}}}
 
-\membersection{wxTreeEvent::wxTreeEvent}
 
-\func{}{wxTreeEvent}{\param{WXTYPE }{commandType = 0}, \param{int }{id = 0}}
+\membersection{wxTreeEvent::wxTreeEvent}\label{wxtreeeventctor}
 
-Constructor.
+\func{}{wxTreeEvent}{\param{wxEventType }{commandType}, \param{wxTreeCtrl *}{tree}, \param{const wxTreeItemId\&}{item = wxTreeItemId()}}
 
-\membersection{wxTreeEvent::GetKeyCode}
+Constructor, used by wxWidgets itself only.
+
+
+\membersection{wxTreeEvent::GetKeyCode}\label{wxtreeeventgetkeycode}
 
 \constfunc{int}{GetKeyCode}{}
 
-Returns the key code if the event was is a key event. Use 
+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}
+
+\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}
+
+\membersection{wxTreeEvent::GetLabel}\label{wxtreeeventgetlabel}
 
 \constfunc{const wxString\&}{GetLabel}{}
 
-Returns the label if the event was a begin or end edit label event.
+Returns the label if the event is a begin or end edit label event.
 
-\membersection{wxTreeEvent::GetOldItem}
+
+\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()}
+
+\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()}
+
+\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}
+
+\membersection{wxTreeEvent::SetToolTip}\label{wxtreeeventsettooltip}
 
 \func{void}{SetToolTip}{\param{const wxString\&}{ tooltip}}
 
