]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/txtdrptg.tex
Patches-1851591 ] dataview sample is crashing (under MSW)
[wxWidgets.git] / docs / latex / wx / txtdrptg.tex
1 \section{\class{wxTextDropTarget}}\label{wxtextdroptarget}
2
3 A predefined drop target for dealing with text data.
4
5 \wxheading{Derived from}
6
7 \helpref{wxDropTarget}{wxdroptarget}
8
9 \wxheading{Include files}
10
11 <wx/dnd.h>
12
13 \wxheading{Library}
14
15 \helpref{wxCore}{librarieslist}
16
17 \wxheading{See also}
18
19 \helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
20 \helpref{wxDropTarget}{wxdroptarget}, \helpref{wxFileDropTarget}{wxfiledroptarget}
21
22 \latexignore{\rtfignore{\wxheading{Members}}}
23
24 \membersection{wxTextDropTarget::wxTextDropTarget}\label{wxtextdroptargetwxtextdroptarget}
25
26 \func{}{wxTextDropTarget}{\void}
27
28 Constructor.
29
30 \membersection{wxTextDropTarget::OnDrop}\label{wxtextdroptargetondrop}
31
32 \func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
33
34 See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
35 appropriately for text, and calls \helpref{wxTextDropTarget::OnDropText}{wxtextdroptargetondroptext}.
36
37 \membersection{wxTextDropTarget::OnDropText}\label{wxtextdroptargetondroptext}
38
39 \func{virtual bool}{OnDropText}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxString\&}{ data}}
40
41 Override this function to receive dropped text.
42
43 \wxheading{Parameters}
44
45 \docparam{x}{The x coordinate of the mouse.}
46
47 \docparam{y}{The y coordinate of the mouse.}
48
49 \docparam{data}{The data being dropped: a wxString.}
50
51 \wxheading{Return value}
52
53 Return true to accept the data, false to veto the operation.
54