Re: How to set "character" width of GtkEntry widget?

From: Date: Thu, 24 Apr 2003 15:37:10 +0000
Subject: Re: How to set "character" width of GtkEntry widget?
References: 1 2 3 4  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3276@lists.php.net to get a copy of this message
> but your last sentence regarding the width of the widget > > is controlled by the way it's packed just means I need to redo my > packing > > (various GtkBoxes, right?) in order to "scrunch" it down? > > Most times when you're packing you need to utilize 'set_usize' somewhere > down the line.. it's PHP, you can calculate the length of a string and > pass it as a variable.. and then use the GtkBox packing parameters to > either allow expansion or not. Heh.. never even thought about that... that's exactly what I want to do... > > I am interested only in width. What would be ideal is: > > > > $entry->set_character_width(5); > > > > which would make it wide enough to display 5 characters in whatever > the > > font already specified was. > > You're missing the point. These are language bindings for an EXISTING > project. I know, I just thought the above would make it clear what I was after... thanks!

« previous php.gtk.general (#3276) next »