Re: [gtk-list] Re: gtk_list / gtk_clist selection mode combination



On Mon, 17 Apr 2000 21:16:14 -0600, Jeff Shipman said:

> Well, I'm not sure how you can morph those together, but
>  I do know that if you press down the shift, control, or
>  both of those buttons, it will change how things are selected
>  when doing clicking.
>  

Herm...

turn on GTK_SELECTION_EXTENDED.

Click on the first item to select... hold button, drag mouse...
release button
Hold down CTRL
click on next item to add to selection... hold button, drag mouse
repeat

No special programming or anything is required.  Be careful with "SHIFT"
click, as it tends to wipe out prior selections.. (ie: after doing the
above, you  have several groups of rows selected, then say you CTRL click
a row, and then scroll down, and SHIFT click to select all intervening
rows... all non-intervening rows will be de-selected.)

Also, be aware that if you turn on the "reorderable" attribute of the
clist, that "drag-select" will no longer work, is the drag will be
interpreted as a row drag, not a selection drag.  In that case,
CTRL-Click is your friend.

Hope that clears up everything ...

-CZ



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