Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    mouseOver Text inside TextArea

    Hi,

    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.

    Thanks.

  • #2
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #3
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,008
    Thanks
    59
    Thanked 10 Times in 10 Posts
    you need to make a custom component



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •