Scroll to the bottom

From: Date: Tue, 15 Mar 2005 14:04:25 +0000
Subject: Scroll to the bottom
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5643@lists.php.net to get a copy of this message
Hello folks.. thanks for the last answer of function 2 function. i dont find the way of make that the scrollbar goes to the bottom after i enter some data.. here is the code: $scroll= &new GtkScrolledWindow(); $scroll->set_border_width(5); $scroll->set_usize(100, 300); $scroll->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); $frame->add($scroll); $vbox = &new GtkVBox();
     $text = &new GtkText();
     $text->set_usize(246, 280);
     $text->set_editable(true);
     $scroll->add($text);
$frame->add($scroll); // then i have something like this $length = $text->get_length(); $text->freeze(); $text->insert_text("name: ". $nombre_final, $length); $text->thaw(); $length = $text->get_length(); $text->freeze(); $text->insert_text("\ndir: ".$dir_principal."\n\n", $length); $text->thaw(); ///////// my question is.. how do i make to do that the scrollbar goes down after i insert some text .. thanks in advice.

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