bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple highlighted widgets in CDK


From: Thomas Dickey
Subject: Re: Multiple highlighted widgets in CDK
Date: Thu, 29 Dec 2005 15:55:33 -0500
User-agent: Mutt/1.5.11

On Wed, Nov 09, 2005 at 09:00:30AM -0500, Thomas Dickey wrote:
> On Wed, 9 Nov 2005, Fu Steve X wrote:
> 
> >>Hi, Thomas,
> >>
> >>There are several input widgets such as buttons or entries  on my screen
> >>and I use traverseCDKScreen to start the event loop.
> >>
> > When the screen first pops up more than one widgets are highlighted
> > although only the upper left one truly has the focus.  After tabbing one
> > pass manually then it gets back to normal - only the upper left one is
> > light lighted and focused.  Is that any simple way to fix it?
> 
> That sounds as if a setFocus() was done without unsetting the focus on the
> other widgets.  traverse.c is supposed to keep that straight...

working on this now, I see that traverse.c doesn't check if there's more
than one widget which thinks it has focus.  I've added some logic in
refreshCDKScreen() that enforces it.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]