Re: GtkText Problem - Getting the text

From: Date: Thu, 27 Dec 2001 15:04:59 +0000
Subject: Re: GtkText Problem - Getting the text
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-925@lists.php.net to get a copy of this message
TO GET THE TEXT gchar* gtk_editable_get_chars (GtkEditable *editable, gint start_pos, gint end_pos); Retrieves a sequence of characters. The characters that are retrieved are those characters at positions from start_pos up to, but not including end_pos. If end_pos is negative, then the the characters retrieved will be those characters from start_pos to the end of the text. // To get the whole box of text. $textstring = $textbox1->get_chars(0,-1); TO DISPLAY THE TEXT void gtk_editable_insert_text (GtkEditable *editable, const gchar *new_text, gint new_text_length, gint *position); Insert text at a given position. // To display text $textbox2->insert_text($textstring) ----- Original Message ----- From: "sascha schulz" <s.schulz@ooe.net> To: <php-gtk-general@lists.php.net> Sent: Thursday, December 27, 2001 8:45 AM Subject: [PHP-GTK] GtkText Problem - Getting the text Could anyone please help me with the following problem: I created two textfield with the GtkText widget - one to enter a message - the other one to display the encrypted message. I can't figure out how to grab the text and display it again ?!?!?!?!?! PS.: I have no problem when using the GtkEntry widget because then I can use the get_text() and set_text() functions. But thats not practicabel with long messages. is there any way I can do that ?????????!?

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