Re: text selection
- From: Paolo Molaro <lupus ximian com>
- To: gtk-perl-list gnome org
- Subject: Re: text selection
- Date: Sat, 3 Mar 2001 20:33:10 +0100
On 02/28/01 Brock wrote:
Does anyone know how can I get (manipulate) selected text in a Gtk::Text
widget? I want to do more than just copy/paste, though I was attempting to
solve my problem by copying the text and then grabbing it from the
clipboard, but I couldn't figure out how to do that either :)
You should tell us exactly what you want to do.
To get the actual text out of a Gtk::Text or Gtk::Entry widget, you
can do:
$editable->get_chars($startpos, $endpos);
To get the actual character positions of the selection you will need
a couple of accessor I just added to the cvs version of Gtk::Editable.xs.
lupus
--
-----------------------------------------------------------------
lupus debian org debian/rules
lupus ximian com Monkeys do it better
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]