Re: how to set text in two columns in clist box



alprach ss <alprach usa net> writes:

> struct DList *temp;
> 
> now i have data in both character pointer arrays...ie.,
> in both
>  temp->data[0]   and
>  temp->data[1]
> 
> how can i display both the data's in clist box in two seperate columns
> using  gtk_clist_set_text(............);

What about using

        for (i = 0; i < 2; i++)
          gtk_clist_set_text (GTK_CLIST (clist), row, i, temp->data[i]);

?
If you are creating the clist, you can use 

        gtk_clist_append (GTK_CLIST (clist), temp->data);

or a similar function which takes the array as argument, but iirc no 
function exists to replace the texts of a complete column in one call.


Salut, Sven





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