]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dropevt.tex
FAQ mods
[wxWidgets.git] / docs / latex / wx / dropevt.tex
CommitLineData
a660d684
KB
1\section{\class{wxDropFilesEvent}}\label{wxdropfilesevent}
2
3This class is used for drop files events, that is, when files have been dropped
4onto the window. This functionality is currently only available under Windows.
5
dface61c
JS
6Important note: this is a separate implementation to the more general
7drag and drop implementation documented \helpref{here}{wxdndoverview}. It uses the
8older, Windows message-based approach of dropping files.
9
a660d684
KB
10\wxheading{Derived from}
11
12\helpref{wxEvent}{wxevent}\\
13\helpref{wxObject}{wxobject}
14
15\wxheading{Event table macros}
16
17To process a drop files event, use these event handler macros to direct input to a member
18function that takes a wxDropFilesEvent argument.
19
20\twocolwidtha{7cm}
21\begin{twocollist}\itemsep=0pt
22\twocolitem{{\bf EVT\_DROP\_FILES(func)}}{Process a wxEVT\_DROP\_FILES event.}
23\end{twocollist}%
24
25\wxheading{See also}
26
27\helpref{wxWindow::OnDropFiles}{wxwindowondropfiles}, \helpref{Event handling overview}{eventhandlingoverview}
28
29\latexignore{\rtfignore{\wxheading{Members}}}
30
31\membersection{wxDropFilesEvent::wxDropFilesEvent}
32
33\func{}{wxDropFilesEvent}{\param{WXTYPE }{id = 0}, \param{int }{noFiles = 0},\rtfsp
34\param{wxString* }{files = NULL}}
35
36Constructor.
37
38\membersection{wxDropFilesEvent::m\_files}
39
40\member{wxString*}{m\_files}
41
42An array of filenames.
43
44\membersection{wxDropFilesEvent::m\_noFiles}
45
46\member{int}{m\_noFiles}
47
48The number of files dropped.
49
50\membersection{wxDropFilesEvent::m\_pos}
51
52\member{wxPoint}{m\_pos}
53
54The point at which the drop took place.
55
56\membersection{wxDropFilesEvent::GetFiles}\label{wxdropfileseventgetfiles}
57
58\constfunc{wxString*}{GetFiles}{\void}
59
60Returns an array of filenames.
61
62\membersection{wxDropFilesEvent::GetNumberOfFiles}\label{wxdropfileseventgetnumberoffiles}
63
64\constfunc{int}{GetNumberOfFiles}{\void}
65
66Returns the number of files dropped.
67
68\membersection{wxDropFilesEvent::GetPosition}\label{wxdropfileseventgetposition}
69
70\constfunc{wxPoint}{GetPosition}{\void}
71
72Returns the position at which the files were dropped.
73
74Returns an array of filenames.
75
76