1999-01-13 09:23:31 -05:00
|
|
|
\section{\class{wxFileDropTarget}}\label{wxfiledroptarget}
|
|
|
|
|
2002-04-02 18:26:22 -05:00
|
|
|
This is a \helpref{drop target}{wxdroptarget} which accepts files (dragged
|
|
|
|
from File Manager or Explorer).
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDropTarget}{wxdroptarget}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dnd.h>
|
|
|
|
|
1999-01-13 09:23:31 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{Drag and drop overview}{wxdndoverview}, \helpref{wxDropSource}{wxdropsource},
|
|
|
|
\helpref{wxDropTarget}{wxdroptarget}, \helpref{wxTextDropTarget}{wxtextdroptarget}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxFileDropTarget::wxFileDropTarget}\label{wxfiledroptargetwxfiledroptarget}
|
|
|
|
|
|
|
|
\func{}{wxFileDropTarget}{\void}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
\membersection{wxFileDropTarget::OnDrop}\label{wxfiledroptargetondrop}
|
|
|
|
|
|
|
|
\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 files, and calls \helpref{wxFileDropTarget::OnDropFiles}{wxfiledroptargetondropfiles}.
|
|
|
|
|
|
|
|
\membersection{wxFileDropTarget::OnDropFiles}\label{wxfiledroptargetondropfiles}
|
|
|
|
|
2002-04-02 18:26:22 -05:00
|
|
|
\func{virtual bool}{OnDropFiles}{\param{wxCoord }{x}, \param{wxCoord }{y}, \param{const wxArrayString\& }{filenames}}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
Override this function to receive dropped files.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{x}{The x coordinate of the mouse.}
|
|
|
|
|
|
|
|
\docparam{y}{The y coordinate of the mouse.}
|
|
|
|
|
2002-04-02 18:26:22 -05:00
|
|
|
\docparam{filenames}{An array of filenames.}
|
1999-01-13 09:23:31 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
|
|
|
Return TRUE to accept the data, FALSE to veto the operation.
|
|
|
|
|
2002-04-02 18:26:22 -05:00
|
|
|
% VZ: this clarification is probably not needed any longer?
|
|
|
|
%\perlnote{In wxPerl there is just an array reference in place of {\tt nFiles}
|
|
|
|
%and {\tt files}.}
|
2001-12-07 11:57:05 -05:00
|
|
|
|