Re: [gtk-list] Re: Optimum way to set the width of a clist



You provide this function with a pointer to the clist and the numberof
the column for which you want to calculate the optimal with. It returns
the width that is equal to the column taking up just enough space to
display the items that it contains completely.

Norbert Bladt wrote:
> 
> Geert Bevin wrote:
> >
> > You can use this function on every column and use the results as you
> > wish.
> >
> > gint        gtk_clist_optimal_column_width  (GtkCList *clist, gint
> > column);
> >
> > I do this to calculate the optimal size for every size, set them to it
> > and expand another column than the last one to fill up space.
> Can you shed some light on this function, i.e. what does it return,
> the column width ?
> 
> Thanks in advance,
> 
> Norbert.

-- 
Geert Bevin - gbevin@thunderstorms.org
Montenegrostraat 11      1060 Brussels
BELGIUM                   0477/302.599
--------------------------------------
>>  Idealists have to communicate  <<



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