G
Gary Hillerson
I have a fairly complicated, multi-column list box that's linked to a
data array. This list supports sorting on the columns and deleting
entries from the array, and all is now working fine.
The problem is that sometimes -- and i haven't exactly nailed down
when -- I end up with nothing in the list highlighted; instead,
there's a dotted line around the entry. If the user down-arrows or
up-arrows, the selection moves as expected and the new selection
becomes highlighted.
I can't figure out how to force that entry to be highlighted in these
circumstances. Whenever I redisplay the list (after a new addition,
deletion, or sorting), I explicitly set the listIndex and call
SetFocus on the list control.
Is there something else I need to do or some trick to force the
highlighting?
gary
data array. This list supports sorting on the columns and deleting
entries from the array, and all is now working fine.
The problem is that sometimes -- and i haven't exactly nailed down
when -- I end up with nothing in the list highlighted; instead,
there's a dotted line around the entry. If the user down-arrows or
up-arrows, the selection moves as expected and the new selection
becomes highlighted.
I can't figure out how to force that entry to be highlighted in these
circumstances. Whenever I redisplay the list (after a new addition,
deletion, or sorting), I explicitly set the listIndex and call
SetFocus on the list control.
Is there something else I need to do or some trick to force the
highlighting?
gary