Re: Clist column width

Major Csaba wrote:

On Wed, Jun 06, 2001 at 01:21:38PM -0400, Chas Owens wrote:
Do you mean the lenth of the string in the cell or the actual pixel
length of the cell?

string length is easy: $len = length($clist->get_text($row, $col));

pixel length is damn near impossible as far as I know, the closest I
have gotten is

  Thanks for your quick answer! But I would like to know the "pixel length"
of a column. At the beginning I know it, but the user can freely modify it
as he wants. I tried to use the resize_column signal, but I didn't get the
size (only the number of the resized column).

On columned tree the resize_column signal returns the column size too.
$ctree->signal_connect('resize_column', \&column_resize);

sub column_resize{
  my ($tree, $col, $col_width) = @_;
  ## bla, bla bla
  return 0;

I don't see why the resize_column signal would not return the width
when applied on a clist.


What do you want to do with the width?

  I would like save it on exit, to set it back on next startup.


gtk-perl-list mailing list
gtk-perl-list gnome org

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