FLTK logo

Re: [fltk.general] Drag-n-drop within Fl_Browser

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Drag-n-drop within Fl_Browser "anmol.... Oct 05, 2020  
  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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.