Re: Could someone please run this script on a nix box & report back?
| From: | Henning Sprang | Date: | Fri, 08 Feb 2002 11:21:54 +0000 |
| Subject: | Re: Could someone please run this script on a nix box & report back? | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1189@lists.php.net to get a copy of this message | ||
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, 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/