DISQUS

codecook: Cursor postion in a flex TextArea control using the TextLineMetrics class

  • Javier Julio · 1 year ago
    Thanks so much for sharing this John as I too am having the same problem! I've tried out your sample and I'm able to get a menu to appear if the user hits SPACE in the textarea. How did you address displaying the popUp? Did you use a menu object or some other component as the popUp? I'd be very interested in knowing what you did.
  • jccrosby · 1 year ago
    Honestly its been so long since I've look at that code I'll have to go play with it, but I'll check it out again and get back to you about what I find out. - John
  • Javier Julio · 1 year ago
    John,

    Thanks I appreciate it. I've had some luck displaying a pop up menu in the textarea right at the cursor position (thanks to you!) but I'm now having some trouble working with the events and getting it to do what I'd like it too. If its not much trouble, if you come across what you did please email me. Thanks again for making this post. Didn't think I was going to find anyone who was trying to do something similar.
  • jccrosby · 1 year ago
    Javier -

    I took a quick peek at what we did for the pop up menu and we are just using a list control. We change its visibility and add/removing event listeners where appropriate.

    We did have to do some data tracking to manage when the list showed so the user could dismiss the list box and keep typing - that was the only hic-up we really encountered though.