04-05-2010 04:44 PM
I was just wondering if this is normal for a ListField. When I add the listfield to my screen, by default it always highlights the first element in the list (index 0). It makes it blue (which is the default selected color), however the problem is in my app the actual focus is not even in the list field. I don't want my listfield to highlight the first element in the list until there is actual focus on the list... is there a way to stop this behavior from happening? or perhaps a way to setSelectedIndex to none?
Any help would be greatly appreciated
Solved! Go to Solution.
04-06-2010 03:19 AM - edited 04-06-2010 03:20 AM
You can add nullfield before listfield , it should solve your porblem.
04-06-2010 08:54 AM
Rajat - I tried adding a NullField and it still does the same thing. I just did the following to the mainscreen:
add(new PropertyListField(resultsVector, this));
Same result... it always highlights the first element in the list, not to mention when the ListField loses focus it keeps the first element highlighted as well.
I would like to manually move the focus but how do you manually move the focus to none of the fields in the list?