]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/fildrptg.tex
added wxMessageQueue class for inter-thread communications
[wxWidgets.git] / docs / latex / wx / fildrptg.tex
CommitLineData
dface61c
JS
1\section{\class{wxFileDropTarget}}\label{wxfiledroptarget}
2
461c9b84
VZ
3This is a \helpref{drop target}{wxdroptarget} which accepts files (dragged
4from File Manager or Explorer).
dface61c
JS
5
6\wxheading{Derived from}
7
8\helpref{wxDropTarget}{wxdroptarget}
9
954b8ae6
JS
10\wxheading{Include files}
11
12<wx/dnd.h>
13
a7af285d
VZ
14\wxheading{Library}
15
16\helpref{wxCore}{librarieslist}
17
dface61c
JS
18\wxheading{See also}
19
20\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
21\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxTextDropTarget}{wxtextdroptarget}
22
23\latexignore{\rtfignore{\wxheading{Members}}}
24
25\membersection{wxFileDropTarget::wxFileDropTarget}\label{wxfiledroptargetwxfiledroptarget}
26
27\func{}{wxFileDropTarget}{\void}
28
29Constructor.
30
dface61c
JS
31\membersection{wxFileDropTarget::OnDrop}\label{wxfiledroptargetondrop}
32
33\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
34
35See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
36appropriately for files, and calls \helpref{wxFileDropTarget::OnDropFiles}{wxfiledroptargetondropfiles}.
37
38\membersection{wxFileDropTarget::OnDropFiles}\label{wxfiledroptargetondropfiles}
39
461c9b84 40\func{virtual bool}{OnDropFiles}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxArrayString\& }{filenames}}
dface61c
JS
41
42Override this function to receive dropped files.
43
44\wxheading{Parameters}
45
46\docparam{x}{The x coordinate of the mouse.}
47
48\docparam{y}{The y coordinate of the mouse.}
49
461c9b84 50\docparam{filenames}{An array of filenames.}
dface61c
JS
51
52\wxheading{Return value}
53
cc81d32f 54Return true to accept the data, false to veto the operation.
dface61c 55
461c9b84
VZ
56% VZ: this clarification is probably not needed any longer?
57%\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles}
58%and {\tt files}.}
91bdd962 59