Re: gtktext

From: Date: Thu, 05 Jul 2001 14:37:31 +0000
Subject: Re: gtktext
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2048@lists.php.net to get a copy of this message
One thing i do to make sure the text 'auto scrolls' is to.. $text->freeze(); $text->insert(null,null,null,"text"); $text->thaw(); //the next bit makes it 'auto scroll' $text->insert(null,null,null," "); $text->backward_delete(1); i.e add you text..then add a spece, then delete that space..a bit 'hacky' but it works for me :) MarkL On Thu, 05 Jul 2001 16:17:43 +0200 "Thetten David" <dthetten@hotmail.com> wrote: > i have a gtktext which i fill with > $text->insert_text("my_text",$text->get_length()) ; this gtktext is bind to > a scrolledwindow ; when i add line no problem until i reach the bottom of > the gtktext; then i add lines so it begin to scroll but some line are > overlapping while > scrolling and it doesn't seem to refresh (i ve tried show() and thaw() > method to refresh but nothing ) > i can refresh manually by scrolling up and down ( and then it is drawn > correctly ) but this is not acceptable to do this at runtime with my mouse > do you know a function to force redraw of a widget? > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at > http://www.hotmail.com. > > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.gtk (#2048) next »