![]() |
![]() |
![]() |
![]() |
| PHP-GTK: Criando Aplicações Gráficas com PHP | Adianti Framework para PHP | PHP Programando com Orientação a Objetos | Criando Relatórios com PHP |
E aí Marcelo!
você terá de usar o método get_text() :
<?php
$window = new GtkWindow;
$window->set_size_request(400,300);
$window->set_title('Exemplo de TextView');
$scroll = new GtkScrolledWindow;
$textview = new GtkTextView;
$textbuffer = new GtkTextBuffer;
$textview->set_buffer($textbuffer);
$textbuffer->insert_at_cursor('sdfsdf');
$start = $textbuffer->get_start_iter();
$end = $textbuffer->get_end_iter();
echo $textbuffer->get_text($start,$end);
$scroll->add($textview);
$window->add($scroll);
$window->show_all();
Gtk::main();
?>
Em Qua, 2007-12-12 às 16:23 -0200, marcelo at sacch.com.br escreveu:
> Alguém sabe como posso ler o texto digitado em uma caixa GtkTextView
> para gravar em um banco de dados
>
> --
> Atenciosamente.
> Marcelo D`Angelo
> (11)4220-4335
> marcelo at sacch.com.br
> www.sacch.com.br
> _______________________________________________
> Lista mailing list
> Lista at php-gtk.com.br
> http://lists.php-gtk.com.br/cgi-bin/mailman/listinfo/lista
--
um abraço!
Pablo Dall'Oglio