How could i disable the selection color on single click and enable it just to double click.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Flex 3 answer…
You’ll need to extend the Tree class and override the drawItem method to remove the highlight child that is added.
It’s as easy as
Then add listeners for clicks and doubleclicks that replicate the functionality of the highlight code you prevented happening in the overridden method.
Note this doesn’t stop the row actually being selected, it just alters the highlight, so it may be a bit confusing for users to have the highlight missing but still have a row selected.