Re: Could someone please run this script on a nix box & report back?

From: Date: Fri, 08 Feb 2002 11:25:29 +0000
Subject: Re: Could someone please run this script on a nix box & report back?
References: 1 2 3 4 5  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1190@lists.php.net to get a copy of this message
It's because the gtkscale uses the initial adjustment setting to size the text box. If you make it a nice shiny new adjustment with lower = 0 and upper = 100 it sizes beautifully. Trouble is, scrolling widgets have their own internal adjustment settings and override anything you might put there. Those internal settings (that the scale bases its width on) are set to 0 during the init process, including upper. So I still am searching for something to align with it that doesn't override the scale's settings.. ideas, anyone? ----- Original Message ----- From: "Henning Sprang" <henning@sprang.de> To: "Steph" <steph.fox@btinternet.com> Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Friday, February 08, 2002 11:21 AM Subject: Re: [PHP-GTK] Could someone please run this script on a nix box & report back? > works here, too, i can't resize the window to hide the numbers anymore, the > first number from the left is still sometimes a bit criplled... > > > > On Thu, Feb 07, 2002 at 01:53:09PM -0000, Steph wrote: > > queue_resize() is a wonderful thing :) > > - this works here. > > > > <? > > dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : > > "so")); > > > > function do_it($scale) { > > $scale->queue_resize(); > > } > > > > $window = &new GtkWindow(); > > $window->set_position(GTK_WIN_POS_CENTER); > > $window->connect_object("destroy", array("gtk", > > "main_quit")); > > > > $box = &new GtkHBox(); > > $window->add($box); > > > > $text = &new GtkText(); > > $text->set_editable(true); > > $box->pack_start($text, true); > > $text->show(); > > > > $adj = $text->vadj; > > > > $scale = &new GtkVScale($adj); > > $scale->set_digits(1); > > $adj->connect_object('value-changed', 'do_it', $scale); > > $box->pack_end($scale, false, false, 3); > > $scale->show(); > > > > $window->show_all(); > > > > gtk::main(); > > ?> > > > > ----- Original Message ----- > > From: "Steph" <Steph.Fox@btinternet.com> > > To: "Henning Sprang" <henning@sprang.de> > > Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> > > Sent: Thursday, February 07, 2002 12:35 PM > > Subject: Re: [PHP-GTK] Could someone please run this script on a nix box & report > > back? > > > > > > Interesting. I kinda expected it to be just windows. > > > > Wondering how to emulate a configure event now ... > > > > ----- Original Message ----- > > From: "Henning Sprang" <henning@sprang.de> > > To: "Steph" <steph.fox@btinternet.com> > > Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> > > Sent: Thursday, February 07, 2002 10:25 AM > > Subject: Re: [PHP-GTK] Could someone please run this script on a nix box & report > > back? > > > > > > > if I understood your question right, you wanna know what happens when the > > > line number goes beyond 100? > > > > > > here it is: > > > the first number of the three before the comma do _not_ show good. > > > When first coming above 100 it is, say, crippled. > > > aftrer resizing to the right a bit and going back it shows right, but one can > > > resize the window so much that the first number is hidden and the second > > > number is half hidden. i can provide you with a screenshot if you wish. > > > > > > henning > > > > > > > > > > > > On Thu, Feb 07, 2002 at 02:33:18AM -0000, Steph wrote: > > > > <? > > > > dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : > > > > "so")); > > > > > > > > $window = &new GtkWindow(); > > > > $window->set_position(GTK_WIN_POS_CENTER); > > > > $window->connect_object("destroy", array("gtk", > > > > "main_quit")); > > > > > > > > $box = &new GtkHBox(); > > > > $window->add($box); > > > > > > > > $text = &new GtkText(); > > > > $text->set_editable(true); > > > > $box->pack_start($text, false); > > > > $text->show(); > > > > > > > > $scale = &new GtkVScale(); > > > > $scale->set_adjustment($text->vadj); > > > > $box->pack_end($scale, false); > > > > $scale->show(); > > > > > > > > $window->show_all(); > > > > > > > > gtk::main(); > > > > ?> > > > > > > > > - The question is, where the numbers are reported do they show fully as they go > > > > into treble figures? - which they should do as you either write text or bung more than ten returns > > > > in. > > > > > > > > Thanks. > > > > > > > > > > > > -- > > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > > > > > -- > > > Henning Sprang, henning@sprang.de, †ä£±6=ÍÑÍŠ > > > Ú–g*http://www.sprang.de/ > > > > > > -- > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > Henning Sprang, henning@sprang.de, http://www.sprang.de/

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