MacArthur, Ian (SELEX GALILEO, UK) wrote:
>>> 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.
> 
> 
> That's an interesting addition, actually.... I wonder if we can make it
> work in a cross-platform way, though?

What about setting an additional flag bit in Fl_Widget::flags() in
Fl_Input's c'tor? This would guarantee that all derived classes also
have this flag set, and a developer could also disable this by
clearing it if s/he likes. Platforms that don't use it can simply
ignore the flag in the drag operation.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to