]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/dropevt.tex
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / docs / latex / wx / dropevt.tex
... / ...
CommitLineData
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.
5The window must have previously been enabled for dropping by calling
6\helpref{wxWindow::DragAcceptFiles}{wxwindowdragacceptfiles}.
7
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
12\wxheading{Derived from}
13
14\helpref{wxEvent}{wxevent}\\
15\helpref{wxObject}{wxobject}
16
17\wxheading{Include files}
18
19<wx/event.h>
20
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
33%\helpref{wxWindow::OnDropFiles}{wxwindowondropfiles},
34\helpref{Event handling overview}{eventhandlingoverview}
35
36\latexignore{\rtfignore{\wxheading{Members}}}
37
38\membersection{wxDropFilesEvent::wxDropFilesEvent}
39
40\func{}{wxDropFilesEvent}{\param{WXTYPE }{id = 0}, \param{int }{noFiles = 0},\rtfsp
41\param{wxString* }{files = NULL}}
42
43Constructor.
44
45\membersection{wxDropFilesEvent::m\_files}
46
47\member{wxString*}{m\_files}
48
49An array of filenames.
50
51\membersection{wxDropFilesEvent::m\_noFiles}
52
53\member{int}{m\_noFiles}
54
55The number of files dropped.
56
57\membersection{wxDropFilesEvent::m\_pos}
58
59\member{wxPoint}{m\_pos}
60
61The point at which the drop took place.
62
63\membersection{wxDropFilesEvent::GetFiles}\label{wxdropfileseventgetfiles}
64
65\constfunc{wxString*}{GetFiles}{\void}
66
67Returns an array of filenames.
68
69\membersection{wxDropFilesEvent::GetNumberOfFiles}\label{wxdropfileseventgetnumberoffiles}
70
71\constfunc{int}{GetNumberOfFiles}{\void}
72
73Returns the number of files dropped.
74
75\membersection{wxDropFilesEvent::GetPosition}\label{wxdropfileseventgetposition}
76
77\constfunc{wxPoint}{GetPosition}{\void}
78
79Returns the position at which the files were dropped.
80
81Returns an array of filenames.
82
83