View Full Version : mouseOver Text inside TextArea

06-18-2009, 08:46 PM

I'm new and learning so excuse my ignorance if this is quite easy to do.

I want to make a SPECIFIC part of the text which is inside the TextArea to be mouseOver.

I know that the TextArea container itself has a mouseOver property but I don't want the mouseOver for the complete TextArea. I would like to have mouseOver only when the mouse moves over specific words which are inside the TextArea.

So for example: I have the TextArea container and then I have this text inside it:

My name is Hellsingfan

I want to make it so that when someone moves over "Hellsingfan" then there is a mouseover event.

Anyone know how only specific words can be made mouseOver inside a textArea? Is is there some other way to do it without using the text area. I'm basically trying to write paragraphs and then make some words inside mouseOver.


06-30-2009, 07:04 AM
I'd imagine you're going to have a hard time with this.

Any solution will probably involve creation of a custom component, extending TextArea. Even then, I'm not sure how you would go about doing this, because you'd need to be able to detect which letter (to determine the word) that the cursor is hovering over. It's probably possible but you'll have to really dig into the source for TextArea and it's parent classes, possibly at a very low level.

It definitely would be cool but it may be a lot of work-- are you sure the functionality you're looking for is worth the effort?

07-16-2009, 12:32 PM
you need to make a custom component