Re: drag-and-drop multiple items from a TreeView




Jeff 'japhy' Pinyan said:
Alas, no.  When you have multiple items selected, there's no way to drag
anything unless you click ONLY the mouse button (no shift- or control-key
pressed), which means that all but the item you've clicked on becomes
selected.

In this case, you'll have to override button-press-event to allow you to start
a drag with some other button, or change the criteria for whether it's a
replace-selection or start-drag event.

This way is fraught with demons, but it should be doable.

Perusing gtk+/gtk/gtktreeview.c will be illustrative.


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]