Incr Widgets
Closed / Invalid497590ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-12-29 11:53:53
I would like to ask the best way to deal with focus and event/bindings for components inside mega widgets. I remember there being a paper entitled "the perfect mega widget" on ways to solve these problems but have not found the code to do this or seen it integrated with tcl. I just wondered as a result if it was thought unnecessary. Problems I find is that focusing on a mega-widget focuses on the holding frame (Hull) and not a desired default internal widget. I've added bindings to deal with this. However, then a second focus call to the mega-widget causes focus to drop back to the Hull. So I have to compensate with focus out checks on all the internal widgets. Next some events must be passed out of the mega widget through bindings. Doing this through bindtags causes the internal widgets names to be used as %W for public user bindings on the mega widget. This causes problems. So I tried an event generate using the Hull widget name but this didn't work. It would seem focus has to be moved to get the event to come out in the right location. This causes some nasty rippling of the focus and the code is horrible. Then you have to deal with the focus being left on the Hull and restoring it to the internal widget if the user didn't move it. All this is very nasty and wondered if theres a better way in later versions of 8.3, 8.4 or a not to distant version of TCL, which may have better support for mega widgets?
hobbsplain2002-01-17 01:55:34
Logged In: YES user_id=72656 This is best directed to comp.lang.tcl, or the incrtcl- [email protected] mailing list.
Log in (anonymous is fine) to add a comment.