From: <no...@so...> - 2000-11-28 11:53:31
|
Bug #120795, was updated on 2000-Oct-31 16:54 Here is a current snapshot of the bug. Project: Tk Toolkit Category: Window manager Status: Open Resolution: None Bug Group: 8.1b1 Priority: 5 Summary: "grab" doesn't prevent interaction with entries that aren't grabbed (windows98) Details: OriginalBugID: 1510 Bug Version: 8.1b1 SubmitDate: '1999-03-16' LastModified: '1999-10-22' Severity: MED Status: Assigned Submitter: pat ChangedBy: hobbs RelatedBugIDs: 1268 1158 OS: Windows 98 Machine: X86 Name: Toni M. Rath ReproducibleScript: set test "This entry can be activated and altered by pressing <TAB>" frame .f1 frame .f2 entry .f1.e -textvariable test button .f2.b -text "exit" -command "destroy .f1" pack .f1 -fill x pack .f2 pack .f1.e -fill x pack .f2.b grab .f2 tkwait window .f1 puts $test exit Description: see below ObservedBehavior: There is a grab on the frame of the Exit-Button. It should not be possible to alter the entry. It is in fact not possible to activate the entry by clicking on it, but if you press TAB, the entry becomes activated. I have a script, that starts a procedure, when you press <RETURN> in an entry. This should not happen, since I am trying to finish another activity (I have a grab on the necessary widgets), that should not be influenced by the other procedure (started by pressing <RETURN>). DesiredBehavior: If there is a grab on a part of a window, it should not be possible to interact with other parts of the window! The error the user reported is a litle mis guided, however it does reval a problem with grab on Windows. Running the provided script on Unix and Windows will show the diufference. Related bu ID 1268. 03/25/1999 15:49 - surles - ---- Related bug IDs 1268 1158 Follow-Ups: Date: 2000-Nov-28 03:53 By: dkf Comment: Grabs don't affect keyboard focus (well, not really) and this is due to the way that Tk manages focus (the easiest alternative is *much* worse, as users of the Athena widget set can attest.) Hence you have to take care of making sure that the focus is correctly managed yourself. ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=120795&group_id=12997 |