Re: text selection



Thanks, That is exactly what I needed.

--Brock

On Sat, 3 Mar 2001, Paolo Molaro wrote:

|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
|
|_______________________________________________
|gtk-perl-list mailing list
|gtk-perl-list gnome org
|http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|





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