Re: Gtk Warning with GtkText and GtkScrolledWindow

From: Date: Fri, 12 Oct 2001 13:23:39 +0000
Subject: Re: Gtk Warning with GtkText and GtkScrolledWindow
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-227@lists.php.net to get a copy of this message
Try setting horizontal scrolling policy to none: $scroll2->set_policy(GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); On Fri, 12 Oct 2001, Christophe VG wrote: > I haven't found any conclusive answers online (google), maybe someone > here can help me out ... > > The code below throws a "Gtk-WARNING **: horizontal scrolling not > implemented". Anyone has an idea how to overcome this ... it's pretty > annoying and not very clean for my end users. If I can't get around it, > can I suppress it somehow ? > > Thanks, > > Christophe VG > > <? > > // load dynamic PHP-GTK library > dl( 'php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : > 'so')); > > // build gui from code > $window1 = new GtkWindow(); > $button1 = new GtkButton( 'click me' ); > $button1->connect( 'clicked', 'on_button1_clicked' ); > $window1->add( $button1 ); > > $window2 = new GtkWindow(); > $scroll2 = new GtkScrolledWindow(); > $window2->add( $scroll2 ); > $text1 = new GtkText(); > $scroll2->add( $text1 ); > > $window3 = new GtkWindow(); > $scroll3 = new GtkScrolledWindow(); > $window3->add( $scroll3 ); > > // show it all !!! > $window1->show_all(); > $window2->show_all(); > $window3->show_all(); > > function on_button1_clicked() { > global $scroll2, $scroll3; > global $text1; > > static $step = true; > > if( $step ) { > $text1->reparent( $scroll3 ); > $step = false; > } else { > $text1->reparent( $scroll2 ); > $step = true; > } > } > > Gtk::main(); > > ?> > > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei "Everything has its wonders, even darkness and silence, and I learn, whatever state I may be in, therein to be content." - Helen Keller

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