|
|
An old thread, but if someone seeks it, I had to replace dragged with was_moved to make it compile.
On Saturday, July 2, 2016 at 3:49:03 AM UTC+5:30 Greg Ercolano wrote:
Added this to my cheat page:
http://seriss.com/people/erco/fltk/#Fl_Browser_DND_Reorder
..where you'll also find some code improvements to what I posted earlier,
namely better behavior with an FL_MULTI_BROWSER, such that Shift-Click
selection extension works predictably, and keeps the focus box on the
currently dragged item.
In a multi-select browser context, I think one can't really tell
if a click-drag should move an item, or drag a selection?
Because of this, the above cheat page version disables drag-selection
in favor of letting you drag an item, but still lets you use Shift-click
to extend a selection.
If there's a better way, let me know.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/e471420e-ad73-488c-907e-c180fda1ac3bn%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |