>
> >>=20
> >> The main kicker with this now is that as the drag happens, the drag
> >> displays a tooltip with the contents of the drag displayed - but what
> >> I am dragging is a long text string full of cryptic information used
> >> to define the dragged entities, and it just looks very odd.
> >>=20
> >> I'm guess that my end users will not like that - is there any way to
> >> suppress that behaviour and not display the text content during the
> >> drag?
> >=20
> > Excellent.
> > I was so proud of showing graphically the dragged text!
> > I guess we could show this only when the dragging source is
> > an Fl_Input_, but Cocoa needs absolutely an image to display
> > during drag. What image do you suggest for "generic" drag operations ?
>
> We could add an optional argument to Fl::dnd() that can point to any =
> Fl_Image. If it is some magic value, FLTK will take a snapshot of the =
> text and drag that (Fl_Input). If it is NULL, it'll simply drag some =
> box, like it does in Carbon.=
>
What is present in recap2.zip is
-test if Fl::pushed() is an Fl_Input_*
-if yes, use the text in the selection buffer and make an image out of it
-if no, use a somewhat transparent square similar to what was used in 
Carbon-FLTK as dragging image.

Is that OK?
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to