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

From: Date: Thu, 24 Apr 2003 21:29:44 +0000
Subject: Re: How to set "character" width of GtkEntry widget?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3281@lists.php.net to get a copy of this message
Ben - That height setting works great. This will allow us to shift fonts around without having to worry about field/label linesups. Thanks, Madeleine D. At 02:08 PM 4/24/2003 -0700, Benjamin Smith wrote: >Try Set_Max_Length()... > >http://gtk.php.net/manual/en/gtk.gtkentry.method.set_max_length.php > >As far as usize, you can use >$entry->Set_Usize($width, -1); > >Documentation for php-gtk on the site is generally fairly complete, even if >not explained very well (or at all). Google is your friend when you run into >this. =) > >Make sure to leave lots of notes as you figure things out. I can't say how >many times I've been saved by my own notes... > >-Ben > >On Wednesday 23 April 2003 09:30 pm, Philip Hallstrom wrote: >> Hi - >> I'm just starting out with gtk-php and am muddling my way through >> some things. I'd dig through the apps up on the website, but it's broken >> at the moment... >> >> One thing I can't figure out is how to make a narrow GtkEntry widget. I >> know I can do use set_usize(), but that's in pixels and it seems like the >> wrong way to make a narrow widget??? >> >> What I'm looking for is the equivalent of the SIZE attribute in HTML for >> "<input type=text name='foo' size=5>"? >> >> Does that exist? If it doesn't, is the height of a GtkEntry *always* the >> same (since there is no way to set one and not the other)??? >> >> Thanks all! >> >> -philip > > >-- >PHP-GTK General Mailing List (http://gtk.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > >

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