Re: Max size for columns of a treeview

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Max size for columns of a treeview

Yu Wang
> then set the column to have that maximum width.
>
>    $treeview->get_column ($n)->set_max_width ($max_width_in_pixels);
>
This the part of code I have for configuring columns:

            my $i = 0;    
            foreach (@slistcolumns){
                $_->set_sort_column_id ($i++);
                $_->set_max_width (100);
                $_->set_resizable (TRUE);
            }

However, with set_max_width () function, the column cannot be manually resized
any more. Everytime I try to resize a column, its width goes to zero and cannot
be drag back.

Please help!

_______________________________________________
gtk-perl-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/gtk-perl-list