From 2cde58f966908851c8d97ee442cdbf825c180899 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 24 Feb 2002 21:09:51 +0000 Subject: Update documentation to contain DND stuff. I am missing a decent Linux machine. Could someone please check if DND works smoothly on those machines? Just run the 'Input' test and mark and drag text out of the text widgets into another app. Then drag'n'drop text into the FLTK widgets. Finally drag text from one widget into another widget within the same FLTK app. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/subclassing.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'documentation/subclassing.html') diff --git a/documentation/subclassing.html b/documentation/subclassing.html index 5b1f69e0f..7e3cbf126 100644 --- a/documentation/subclassing.html +++ b/documentation/subclassing.html @@ -362,6 +362,7 @@ positions you might want to call child->draw_label(x,y,w,h,a). should call this on all the children if your own damage is equal to FL_DAMAGE_CHILD. Nothing is done if the child is not visible() or if it is clipped. +

Cut and Paste Support

FLTK provides routines to cut and paste 8-bit text (in the future this may be UTF-8) between applications: @@ -372,6 +373,24 @@ may be UTF-8) between applications: It may be possible to cut/paste non-text data by using Fl::add_handler(). + +

Drag And Drop Support

+ +FLTK provides routines to drag and drop 8-bit text between applications: + +

Drag'n'drop operations are are initiated by copying data to the +clipboard and calling the function +Fl::dnd(). + +

Drop attempts are handled via events: +

+

Making a subclass of Fl_Window

You may want your widget to be a subclass of -- cgit v1.2.3