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