Re: Fw: Another asks about the CList EXTENDED selection



Jean-Christophe Berthon wrote:


   >> I want to use the EXTENDED selection mode of the CList to allow the
   >> user to select multiple row using primarirly the control and shift
   >> key...  The problem is that in the documentation it is precise that
   >> the field selection of the CList is set to NULL in this selection
   >> mode. How should I do that then?


I think the tutorial is wrong (or misleading?) here. Whatever selection mode, you can always look at clist->seletion and get a list of selected row numbers.

If you look at textgtk.c and search for clist_remove_selection(), you'll see that's just what they do.

John




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