I think you are confusing the issues of clearing the focus and
clearing the selection.
If a listbox has a selection (highlighted row) and you clear the
focus, the highlight of the row remains but changes to the
'unfocused' color (gray on my system).
If a listbox has a selection (highlighted row) and you clear the
selection, the highlight of the row is removed.
A listbox with the focus and no selection can be indistinguishable
from a listbox without the focus and no selection depending on
whether or not you have UseFocusRing set to TRUE or FALSE.
Based on your further description it sounds like you are more
concerned with clearing the selection; clearing the focus seems
unnecessary.
If that is the case, then Terry's first response (setting ListIndex =
-1) gives you the behavior you want.
On May 8, 2006, at 06:28, Jonathon Bevar wrote:
Just do a [self.setfocus] in the section where I want to clear and
unsetfocus to the listbox?
--
David Glass - Gray Matter Computing
graymattercomputing.com - corepos.com
559-303-4915
Apple Certified Help Desk Specialist
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>