Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d147eb699b297661aa740af11f512bdd7e69ccdb
Ticket: 497590ffffffffffffffffffffffffffffffffff
Incr Widgets
User & Date: s_a_white on 2001-12-29 11:53:53
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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?
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "s_a_white"
  9. subsystem changed to: "55. Other Tools"
  10. title changed to: "Incr Widgets"
  11. type changed to: "RFE"