From: <no...@so...> - 2001-09-05 23:17:05
|
Bugs item #458790, was opened at 2001-09-05 09:29 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=458790&group_id=12997 Category: 67. Events Group: 8.4a3 >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Christopher Nelson (chris_nelson) Assigned to: Jeffrey Hobbs (hobbs) Summary: Infinite loop of focus events Initial Comment: In what I believe is a fairly typical structure for handling mega-widgets, I get an infinite loop of focus events which, in my particular case, constantly selects the only character in an entry so that you can't type more. The attached script demonstrates. I'm running on UNIX with 8.4a3 (well, a late snapshot of a4, I'm about to get the Real Thing). Bruce Hartweg <brh...@bi...> says this works OK for him "under 98SE with version 8.3.3 (from ActiveTcl 8.3.3.2)". ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2001-09-05 16:16 Message: Logged In: YES user_id=72656 Nothing mysterious here. On Unix, the message box is coded such that it returns focus to the last element. That is .f2. The test is rigged to want to give focus to .f1. Each of those has a FocusIn that sets and 'after idle' to set focus to their interior bits. Both focuses get called, the idle events hit - and whammo, a loop. I'm not sure what the best solution is, but this is a clearly coded loop condition. ---------------------------------------------------------------------- Comment By: Christopher Nelson (chris_nelson) Date: 2001-09-05 09:39 Message: Logged In: YES user_id=107514 OK. It seems to work for me, too, on NT w/ 8.4a3. 'Guess it's a UNIX-only issue; Specifically, I'm running on Solaris where `uname -a` returns SunOS urchin 5.8 Generic_108528-05 sun4u sparc SUNW,UltraSPARC-IIi-Engine ---------------------------------------------------------------------- Comment By: Christopher Nelson (chris_nelson) Date: 2001-09-05 09:31 Message: Logged In: YES user_id=107514 When I said "a late snapshot of a4", I meant "a3". Sorry. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=458790&group_id=12997 |