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

Re: Selected rows in CList



On 8 Nov 1998, Preben Randhol wrote:

> Q#1: 
>  
> Is it possible to get all the rows that are selected in a CList
> Widget, or do one have to make a list oneself that controls which rows
> are selected and which that are not (using callback functions)?
no, you can use a code like this:

GList *list;
gint row;

  list = GTK_CLIST(clist)->selection;
  while (list)
    {
    row=(gint)list->data;
    printf("\nrow %i is selected",row);
    list = list->next;
    }

bye,
 disqk




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