Re: set_line_wrap() on Win32 - RETHUNK

From: Date: Fri, 27 Apr 2001 15:40:44 +0000
Subject: Re: set_line_wrap() on Win32 - RETHUNK
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1541@lists.php.net to get a copy of this message
I was wrong about widget relationships, it's about line lengths.... If you use justification without linewrap on a window with a preset size, you can lose a fair amount of text. Linewrap seems to set the width of the label widget at around 30 chars (33? is that sensible?) - there isn't a relationship between the label text and the window widget, it just looked that way at first. I can't find any way to change that default linewrap setting. Basically if you take the linewrap away, the label width becomes the width of the longest line - if you haven't set line lengths with \n then that's the soft wrap in your script. The justification is relative to that, and not to its position within the widget itself. Effectively, fill justify == (linewrap (- the 30 char limitation)). So yes you're right, they don't work together, linewrap overrides justify. (but I still can't see where they'd be meant to, anyway!) ----- Original Message ----- From: "Geoff A. Virgo" <wig@mithril.ca> To: <php-gtk@lists.php.net> Sent: Friday, April 27, 2001 9:44 AM Subject: [PHP-GTK] set_line_wrap() on Win32 Hmmmm.... Has another else noticed that calling set_line_wrap(true) on Win32 seems to cancel out set_justify()? For example, in the gtk.php sample that comes with the distro if you maximize the labels window, both the "Wrapped Label" and "Filled, Wrapped Label" stay centered in their frames as a block of text instead of expanding to fill the frame. Of course, that's what the "Wrapped Label" is supposed to do:) However doesn't matter what justification style you try to call on either of them (right, left, or fill), the block of text never changes or moves. Weird. Cheers, Geoff A. Virgo http://www.mithril.ca/ ---------------------------------------------------------------------------------------------------------------- The fact that humans have no caffiene-producing gland proves there is no God. -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.gtk (#1541) next »