]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/latex/wx/droptrgt.tex
Some doc fixes
[wxWidgets.git] / docs / latex / wx / droptrgt.tex
index c4db2ec7c3f3d2ed8ef05c0d12fe60269478b54a..30e206c4e7c92b54e954814e0989383da117fdcd 100644 (file)
@@ -43,11 +43,15 @@ Override this to indicate how many formats you support.
 
 Override this to indicate what kind of data you support.
 
 
 Override this to indicate what kind of data you support.
 
-\membersection{wxDropTarget::OnEnter}\label{wxdroptargetonenter}
+\membersection{wxDropTarget::OnData}\label{wxdroptargetondata}
 
 
-\func{virtual void}{OnEnter}{\void}
+\func{virtual wxDragResult}{OnData}{\param{wxCoord}{ x}, \param{wxCoord}{ y}, \param{wxDragResult}{ def}}
 
 
-Called when the mouse enters the drop target.
+Called after OnDrop() returns TRUE: you will usually just call
+GetData() from here and, probably, also refresh something to update the
+new data and, finally, return the code indicating how did the operation
+complete (returning default value in case of success and wxDragError on
+failure is usually ok).
 
 \membersection{wxDropTarget::OnDrop}\label{wxdroptargetondrop}
 
 
 \membersection{wxDropTarget::OnDrop}\label{wxdroptargetondrop}
 
@@ -69,6 +73,12 @@ Called when the user drops a data object on the target. Return FALSE to veto the
 
 Return TRUE to accept the data, FALSE to veto the operation.
 
 
 Return TRUE to accept the data, FALSE to veto the operation.
 
+\membersection{wxDropTarget::OnEnter}\label{wxdroptargetonenter}
+
+\func{virtual void}{OnEnter}{\void}
+
+Called when the mouse enters the drop target.
+
 \membersection{wxDropTarget::OnLeave}\label{wxdroptargetonleave}
 
 \func{virtual void}{OnLeave}{\void}
 \membersection{wxDropTarget::OnLeave}\label{wxdroptargetonleave}
 
 \func{virtual void}{OnLeave}{\void}