bug-ncurses
[Top][All Lists]
Advanced

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

Re: Set focus outside of traverelCDK in CDK


From: Thomas Dickey
Subject: Re: Set focus outside of traverelCDK in CDK
Date: Mon, 26 Dec 2005 20:56:12 -0500
User-agent: Mutt/1.5.11

On Fri, Dec 23, 2005 at 08:36:11AM -0500, Fu Steve X wrote:
> I was trying to get a RESET feature to work. That is, emptying the input
> field and setting the focus to the first widget on the screen. I changed the
> switchFocus function in CDK to non-static so it can be called from user
> code. But the switchFocus has no effect in my code. Is that because the
> focusing was controlled by traverseCDKScreen? 

I think the answer is that traverse.c's curobj value is not altered by the
callback.  It might be possible to make this work by having traverseCDKScreen
recompute curobj on each loop rather than leaving it in a local variable.

(I've been working on cdk today, will take a look at this tomorrow before
getting into bug-fixes).

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




reply via email to

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