On 14.12.2009, at 11:00, manolo gouy wrote:

>> 
>> On 13.12.2009, at 22:32, manolo gouy wrote:
>> 
>>>> Yes, the dnd effect is nice, but for whatever reason, it does not
>>>> work if data is dragged from the same program.
>>> I don't follow you: I see the green circle in the input demo when
>> dragging from Multiline to Normal, and in my app when dragging text
>>> from one window to another one
>> 
>> Start the "input" test and type a few words into the top line. Then drag
>> a file from the desktop over that text and you will see the text cursor 
>> =move and indicate where the filename would be inserted if you drop the
>> file now. This is a very helfull feature However, if you drag text from =
>> 
>> the same application, the "(+)" is still drawn, but the cursor in the
>> text field does not move, likely due to a missing refresh.
>> 
> Now I see. The feature you describe is in TextWrangler, but
> not in FLTK-Cocoa (nor in FLTK-Carbon though).

No, it's a function of FLTK. As long as the 'drag' code is not modal for the 
application (returns immediately, before the data is actually dropped), and all 
FL_DND_* events are received correctly, FLTK will interactively show the 
insertion point.

But it's possible that Fl:dnd() does not return until the data is actually 
dropped... .

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

Reply via email to