Duh, stupid me. But I don't see this method in the RichTextArea widget though. I'd like to use the font effects of RichTextArea along with this. I thought TextArea is just a simpler version of RichTextArea, apparently they're very different. Is there an easy way of getting this to work with RichTextArea besides creating a new customized widget?
On Aug 29, 3:49 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > textArea.getSelectedText()? > > 2008/8/29 Quan <[EMAIL PROTECTED]> > > > > > My problem is I need to detect what text string in a TextArea is being > > highlighted. For example, when I highlight a certain text in a > > paragraph and hit a button only that string is shown on a Label. Is > > there some type of Listener for this purpose? > > > I know this must be possible because the RichTextArea widget has this > > capability, when you highlight a string of text, you can toggle > > different font effects just for that particular string. I've been > > looking into the RichTextArea source but have found no success. > > -- > Ian > > http://examples.roughian.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
