Re: Max size for columns of a treeview



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!




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