David thank you

I did try Terry's idea and yes it works perfectly. But when I do an arrow up-down it will trigger the setfocus in the list box were as I want NO response at all. The end user must click on the selection, or am I being to picky?

Jonathon

----- Original Message ----- From: "David Glass" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Monday, May 08, 2006 7:41 AM
Subject: Re: Clearing the focus on a Listbox


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>




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 5/5/2006





--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/333 - Release Date: 5/5/2006

_______________________________________________
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>

Reply via email to