It should.  What's your code?  Something like this?

Glib::ustring Editor::Extract_Text(Gtk::TextView* viewer)
{
    Glib::RefPtr< Gtk::TextBuffer > vBuf = viewer->get_buffer();
    Glib::ustring myview = vBuf->get_text();
    return myview;
}


Have a look in the book- 
http://library.gnome.org/devel/gtkmm-tutorial/stable/chapter-textview.html.en 
(although the example doesn't show how to extract text).

Ian.



________________________________
From: Ugur Arpaci <[email protected]>
To: [email protected]
Sent: Sun, 22 August, 2010 8:20:48 AM
Subject: Fwd: gtkmm




---------- Forwarded message ----------
From: Ugur Arpaci <[email protected]>
Date: Fri, Aug 20, 2010 at 2:22 PM
Subject: gtkmm
To: "Ubuntu user technical support, not for general discussions" 
<[email protected]>


Hello fellas;

I got a question about gnome's gtkmm interface for C++. I got a TextBuffer 
object, and i want to transfer this text into a character array, let's say 
after 
a button is clicked. There are some functions but i cannot make it work. 

Thanks for your attention.

-- 
Uğur ARPACI




-- 
Uğur ARPACI


      
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list
  • Fwd: gtkmm Ugur Arpaci
    • Re: Fwd: gtkmm Ian Martin

Reply via email to