Re: Fwd: gtkmm



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 <ugurarpaci gmail com>
To: gtkmm-list gnome org
Sent: Sun, 22 August, 2010 8:20:48 AM
Subject: Fwd: gtkmm



---------- Forwarded message ----------
From: Ugur Arpaci <ugurarpaci gmail com>
Date: Fri, Aug 20, 2010 at 2:22 PM
Subject: gtkmm
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users lists ubuntu com>


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


 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]