1999-01-13 14:23:31 +00:00
|
|
|
\section{\class{wxTextDropTarget}}\label{wxtextdroptarget}
|
|
|
|
|
|
|
|
A predefined drop target for dealing with text data.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDropTarget}{wxdroptarget}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dnd.h>
|
|
|
|
|
1999-01-13 14:23:31 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
|
|
|
|
\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxTextDropTarget::wxTextDropTarget}\label{wxtextdroptargetwxtextdroptarget}
|
|
|
|
|
|
|
|
\func{}{wxTextDropTarget}{\void}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\membersection{wxTextDropTarget::OnDrop}\label{wxtextdroptargetondrop}
|
|
|
|
|
|
|
|
\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
|
|
|
|
|
|
|
|
See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
|
|
|
|
appropriately for text, and calls \helpref{wxTextDropTarget::OnDropText}{wxtextdroptargetondroptext}.
|
|
|
|
|
|
|
|
\membersection{wxTextDropTarget::OnDropText}\label{wxtextdroptargetondroptext}
|
|
|
|
|
|
|
|
\func{virtual bool}{OnDropText}{\param{long }{x}, \param{long }{y}, \param{const char }{*data}}
|
|
|
|
|
|
|
|
Override this function to receive dropped text.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{x}{The x coordinate of the mouse.}
|
|
|
|
|
|
|
|
\docparam{y}{The y coordinate of the mouse.}
|
|
|
|
|
|
|
|
\docparam{data}{The data being dropped: a NULL-terminated string.}
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
|
|
|
Return TRUE to accept the data, FALSE to veto the operation.
|
1999-01-17 19:25:06 +00:00
|
|
|
|