Re: Getting the text from a GtkText Widget

From: Date: Wed, 21 Nov 2001 00:39:01 +0000
Subject: Re: Getting the text from a GtkText Widget
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-640@lists.php.net to get a copy of this message
On Tue, Nov 20, 2001 at 04:35:29PM -0800, pqadmin@physicianquest.com wrote : > These seems to work, however, it will only pull the amount of chars to which > ive entered, for instance: $text->get_chars(0, 50); I would have to type 50 > chars at least to get it returned ... is there a workaround for this, being an > IM, i wont be sure how many chars there are... Hmmmm, couldnt i use: $numchars > = $text->get_point(); $senttxt = $text->get_chars(0, $numchars); ???? I think > thatll work... but if you know an easier way ;-) TIA Just read the documentation link I gave you: If end_pos is negative, then the the characters retrieved will be those characters from start_pos to the end of the text. - Markus

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