Re: set_line_wrap() on Win32 - RETHUNK

From: Date: Sat, 28 Apr 2001 07:23:27 +0000
Subject: Re: set_line_wrap() on Win32 - RETHUNK
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1551@lists.php.net to get a copy of this message
Yeppers,
        Seems to work.... well mostly anyways:)  The word_wrap works perfectly, just it displays a little black box (about the height of a cursor and approx. four or five cursor widths wide) at the end of every line which is wrapped.  Anyone now where this mystical little box comes from, and more importantly, how to send it back from whence it came?  A script example can be provided if you've no idea what I'm talking about:)  Thanx for your help!!
At 10:50 PM +0100 Friday, 4/27/01, you wrote:
Yo! Necessary parameters for GtkText: GtkAdjustment objects representing H and V. :) Haven't time to experiment further right now, but it looks like the way to go. They're re-settable. ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Geoff A. Virgo" <wig@mithril.ca> Sent: Friday, April 27, 2001 10:31 PM Subject: Re: [PHP-GTK] set_line_wrap() on Win32 - RETHUNK If there's enough text there to be thinking in terms of scrollbars you should probably be looking into GtkText anyway. Me too, I know bugger-all about that either! ;) ----- Original Message ----- From: "Geoff A. Virgo" <wig@mithril.ca> To: "Steph" <steph.fox@btinternet.com> Sent: Friday, April 27, 2001 9:38 PM Subject: Re: [PHP-GTK] set_line_wrap() on Win32 - RETHUNK Thanx Steph,
         That makes sense, would be nice to be able to set a number of
chars for the label width though:( The idea of using linewrap and justify in tandem was to try and accommodate radically different resolution settings (800x600 vs. 1600 x 1400 for example). I wanted the label text to auto-expand based on the window width justify = fill without have to make people at lower resolutions rely on horizontal scroll bars to read the label text. Then again, I'm also still using the March 20th binaries so the answer could lie in the CVS:) At 04:40 PM +0100 Friday, 4/27/01, you wrote: 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 Cheers, Geoff A. Virgo http://www.mithril.ca/ ------------------------------------------------------------------------------------------------------------------------ Do not meddle in the affairs of programmers, for they are subtle and quick to anger. - paraphrase from The Lord of the Rings
Cheers, Geoff A. Virgo http://www.mithril.ca/ ------------------------------------------------------------------------------------------------------------------------ Do not meddle in the affairs of programmers, for they are subtle and quick to anger. - paraphrase from The Lord of the Rings

« previous php.gtk (#1551) next »