php-gtk2 GtkTextIter or GtkTextBuffer
| From: | PPK-Webprogramm CH Gordevio www.ciz.ch | Date: | Tue, 25 Oct 2005 16:45:38 +0000 |
| Subject: | php-gtk2 GtkTextIter or GtkTextBuffer | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6267@lists.php.net to get a copy of this message | ||
Hi list ,
Ok now i can insert text on a GtkTextView
<snip full => http://ciz.ch/svnciz/new_php_gtk2/xmleditor/xmlconverter.php
function __Set_Text_Buffer($text) {
//// work to set text on
//// $this->text_body = new GtkTextView(); /// :-) //////// $this->text_body->set_buffer($this->text_buffer); $buff = &new GtkTextBuffer(); $buff->set_text($text,strlen($text)); return $buff; } snip> But now edit text inside GtkTextView ok...... but to get return text can i use GtkTextBuffer() ? or wath is the job from gtktextiter ?? http://ciz.ch/svnciz/new_php_gtk2/xmleditor/Doc_PHP_Class/GtkTextIter.html how return text? Tanks peter www.ciz.ch function __Return_Text_Buffer() { ///$text = $this->text_buffer->get_char_count(); //// work /// $text = $this->text_body->get_name(); //// work /// $text = $this->text_body->get_property('justification'); /// not work $text = $this->text_body->get_buffer(); $op = $text->get_data('text'); ///// null?? return $op; }