Re: GtkLayout continued - anyone out there?

From: Date: Thu, 28 Feb 2002 21:59:40 +0000
Subject: Re: GtkLayout continued - anyone out there?
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1391@lists.php.net to get a copy of this message
This one shows up the problems better - I think it's somehow not generating expose events, I'm in the middle of testing that theory. If I open up, drag the scrolls to the bottom, maximise, then restore, the buttons and labels get strangely jumbled .. quite fetching, but not what's supposed to happen I'm sure. I'm running win98 here. <? /* layout setup thieved from testgtk.c */ dl("php_gtk." . (strstr(PHP_OS, "WIN") ? "dll" : "so")); $window = &new GtkWindow(); $window->set_position(GTK_WIN_POS_CENTER); $window->set_title('Layout'); $window->set_usize(200, 200); $window->connect_object("destroy", array("gtk", "main_quit")); $scrolledwindow = &new GtkScrolledWindow(); $window->add($scrolledwindow); $layout = &new GtkLayout(null, null); $scrolledwindow->add($layout); $x = gdk::screen_width(); $y = gdk::screen_height(); $layout->set_size($x-50, $y-100); for ($i=0 ; $i < round($y/100); $i++) { for ($j=0 ; $j < round($x/100); $j++) { $buf =sprintf("Button %d, %d", $i, $j); if (($i + $j) % 2) $button = &new GtkButton($buf); else $button = &new GtkLabel($buf); $layout->put($button, $j*100, $i*100); } } $layout->show_all(); $window->show_all(); gtk::main(); ?> ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Jared Smith" <jaredsmith@jaredsmith.net> Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Thursday, February 28, 2002 9:31 PM Subject: Re: [PHP-GTK] GtkLayout continued - anyone out there? It does? With the original settings? ----- Original Message ----- From: "Jared Smith" <jaredsmith@jaredsmith.net> To: "Steph" <steph.fox@btinternet.com> Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Thursday, February 28, 2002 9:32 PM Subject: Re: [PHP-GTK] GtkLayout continued - anyone out there? > Works for me...I'll try it under windows later today. > > Jared > > -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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