diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-02-10 12:21:35 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-02-10 12:21:35 +0000 |
| commit | ba0d72184ca56a429976205aeef140c01921d669 (patch) | |
| tree | c9a7dc779cbe4ccf582a2648f34891e64fb8066c /documentation | |
| parent | 72ca38cdd94e36ce9361aa6bfb6b65abfe0e3c4e (diff) | |
STR 1577: added documentation for Drag And Drop.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/events.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/documentation/events.html b/documentation/events.html index c4838e497..2f1ad1554 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -227,6 +227,19 @@ selection indication. Most modern programs ignore this. <H2><A NAME="dnd">Drag And Drop Events</A></H2> +<P>FLTK supports Drag And Drop of text and files from any +application on the desktop. Text is transfered as ASCII using +the current code page. Files are received as a list of full path +and file names, seperated by newline. On some platforms, path +names are prepended with <tt>file://</tt>. + +<P>The Drag And Drop data is available in <tt>Fl::event_text()</tt> +at the concluding <tt>FL_PASTE</tt>. On some platforms, the +event text is already available for all <tt>FL_DND_*</tt> events. + +<P><tt>FL_DND_*</tt> events can not be used in widgets derived +form <tt>Fl_Group</tt> or <tt>Fl_Window</tt>. + <H3>FL_DND_ENTER</H3> <P>The mouse has been moved to point at this widget. A widget |
