On 09/08/12 08:10, Duncan Gibson wrote:
>> According to svn, engelsman put this in the docs:
>>
>> "FL_DND_* events cannot be used in widgets derived from Fl_Group or =
>> Fl_Window."
>>
>> Is there any specific platform or any reason for this? Or is the =
>> sentence itself wrong?
> 
> I don't remember adding it. The same sentence appears in the 1.1 docs
> http://www.fltk.org/documentation.php/doc-1.1/events.html#events


        The sentence should probably be removed, assuming the correct
        behavior can be seen across all platforms.

        Unless, that is, anyone can remember why the line is still there
        and if it's still relevant.

        Sounds like something that was perhaps relevant at the time
        when DND was in early development in FLTK, and has since been fixed
        but the comment remained.

        I hazily recall when DND was first added to FLTK there were a bunch
        of caveats, then later someone did another pass at it (Matthias?)
        and stabilized it.

        Seems like DND works with Fl_Group; I just did a quick test
        on linux with this code:
        http://seriss.com/people/erco/fltk/#DragAndDrop
        ..and modified it to derive the Sender/Receiver classes
        from Fl_Group (instead of Fl_Box) and it still worked normally.
        (Did my test on linux only)

        Just replaced all instances of Fl_Box with Fl_Group, and had to
        add align(FL_ALIGN_INSIDE); to both class ctors so that I could
        read the labels properly.

        Assuming that works on the other OS's, I'd say just by empirical 
evidence
        the comment could then be removed.
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to