0 Replies Latest reply on Apr 15, 2008 10:19 AM by TransoniqHacker

    Select text on click

    TransoniqHacker Level 1
      I'm a flex beginner, so bear with me on this one... :)

      I need to have the contents of a text field selected when the user clicks on the field. When a user tabs to the field, the contents are selected, but not when they click on the field. Is there a way I can do this?

      Forgot to mention something... I am not using the standard text control. I can do what I need with that using the setSelection method. But, I am using a custom AutoSuggest control that inherits its functionality from a combobox. Therefore, it doesn't seem to allow the use of the setSelection method.

      Here is the URL for the component: AutoSuggest

      Right click once you get there to see the source code

      Thanks.

      Matt