]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/fildrptg.tex
unified wxFRAME_EX_CONTEXTHELP and wxDIALOG_EX_CONTEXTHELP in a single wxWS_EX_CONTEX...
[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
dface61c
JS
14\wxheading{See also}
15
16\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
17\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxTextDropTarget}{wxtextdroptarget}
18
19\latexignore{\rtfignore{\wxheading{Members}}}
20
21\membersection{wxFileDropTarget::wxFileDropTarget}\label{wxfiledroptargetwxfiledroptarget}
22
23\func{}{wxFileDropTarget}{\void}
24
25Constructor.
26
dface61c
JS
27\membersection{wxFileDropTarget::OnDrop}\label{wxfiledroptargetondrop}
28
29\func{virtual bool}{OnDrop}{\param{long }{x}, \param{long }{y}, \param{const void }{*data}, \param{size\_t }{size}}
30
31See \helpref{wxDropTarget::OnDrop}{wxdroptargetondrop}. This function is implemented
32appropriately for files, and calls \helpref{wxFileDropTarget::OnDropFiles}{wxfiledroptargetondropfiles}.
33
34\membersection{wxFileDropTarget::OnDropFiles}\label{wxfiledroptargetondropfiles}
35
461c9b84 36\func{virtual bool}{OnDropFiles}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxArrayString\& }{filenames}}
dface61c
JS
37
38Override this function to receive dropped files.
39
40\wxheading{Parameters}
41
42\docparam{x}{The x coordinate of the mouse.}
43
44\docparam{y}{The y coordinate of the mouse.}
45
461c9b84 46\docparam{filenames}{An array of filenames.}
dface61c
JS
47
48\wxheading{Return value}
49
cc81d32f 50Return true to accept the data, false to veto the operation.
dface61c 51
461c9b84
VZ
52% VZ: this clarification is probably not needed any longer?
53%\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles}
54%and {\tt files}.}
91bdd962 55