1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxDropFilesEvent}}\label{wxdropfilesevent}
|
|
|
|
|
|
|
|
This class is used for drop files events, that is, when files have been dropped
|
|
|
|
onto the window. This functionality is currently only available under Windows.
|
2002-04-08 12:46:27 -04:00
|
|
|
The window must have previously been enabled for dropping by calling
|
|
|
|
\helpref{wxWindow::DragAcceptFiles}{wxwindowdragacceptfiles}.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-13 09:23:31 -05:00
|
|
|
Important note: this is a separate implementation to the more general
|
|
|
|
drag and drop implementation documented \helpref{here}{wxdndoverview}. It uses the
|
|
|
|
older, Windows message-based approach of dropping files.
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxEvent}{wxevent}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/event.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{Event table macros}
|
|
|
|
|
|
|
|
To process a drop files event, use these event handler macros to direct input to a member
|
|
|
|
function that takes a wxDropFilesEvent argument.
|
|
|
|
|
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf EVT\_DROP\_FILES(func)}}{Process a wxEVT\_DROP\_FILES event.}
|
|
|
|
\end{twocollist}%
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
2002-04-08 12:46:27 -04:00
|
|
|
\helpref{Event handling overview}{eventhandlingoverview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDropFilesEvent::wxDropFilesEvent}\label{wxdropfileseventctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxDropFilesEvent}{\param{WXTYPE }{id = 0}, \param{int }{noFiles = 0},\rtfsp
|
|
|
|
\param{wxString* }{files = NULL}}
|
|
|
|
|
|
|
|
Constructor.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDropFilesEvent::m\_files}\label{wxdropfileseventmfiles}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{wxString*}{m\_files}
|
|
|
|
|
|
|
|
An array of filenames.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDropFilesEvent::m\_noFiles}\label{wxdropfileseventmnofiles}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{int}{m\_noFiles}
|
|
|
|
|
|
|
|
The number of files dropped.
|
|
|
|
|
2004-09-30 07:15:59 -04:00
|
|
|
\membersection{wxDropFilesEvent::m\_pos}\label{wxdropfileseventmpos}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{wxPoint}{m\_pos}
|
|
|
|
|
|
|
|
The point at which the drop took place.
|
|
|
|
|
|
|
|
\membersection{wxDropFilesEvent::GetFiles}\label{wxdropfileseventgetfiles}
|
|
|
|
|
|
|
|
\constfunc{wxString*}{GetFiles}{\void}
|
|
|
|
|
|
|
|
Returns an array of filenames.
|
|
|
|
|
|
|
|
\membersection{wxDropFilesEvent::GetNumberOfFiles}\label{wxdropfileseventgetnumberoffiles}
|
|
|
|
|
|
|
|
\constfunc{int}{GetNumberOfFiles}{\void}
|
|
|
|
|
|
|
|
Returns the number of files dropped.
|
|
|
|
|
|
|
|
\membersection{wxDropFilesEvent::GetPosition}\label{wxdropfileseventgetposition}
|
|
|
|
|
|
|
|
\constfunc{wxPoint}{GetPosition}{\void}
|
|
|
|
|
|
|
|
Returns the position at which the files were dropped.
|
|
|
|
|
|
|
|
Returns an array of filenames.
|
|
|
|
|
|
|
|
|