Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TK - ButtonRelease on Grab Window

Closed / Invalid527142ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-07 20:47:07
I have a problem with the ButtonRelease bind on a 
window that has the grab if I move off the window with 
the button depressed and then release it.
Platform: Windows 2000

Steps to reproduce:
1. Create a window:

    toplevel .testWindow -class Toplevel
    wm focusmodel .testWindow passive
    wm geometry .testWindow 406x312+254+250
    wm title .testWindow "Login"
    entry .testWindow.userId
    place .testWindow.userId -in .testWindow \
          -x 145 -y 80
    grab .testWindow
    # Done

NOTE: You must make sure the window has the grab.

2. Place the cursor in the entry widget and type
   the "123456789"

3. Hold down the LMB and highlight what you just typed.
   Without releasing the LMB, move the mouse over 
   to the Windows Desktop and then release the LMB.

4. Move the mouse back over the .testWindow. TK acts 
   like the LMB is still depressed. If you start
   typing with everything highlight, input appears to
   the left because it acts like you have the first
   character highlighted.
andreas_kupriesplain2002-03-19 06:46:33
Logged In: YES 
user_id=75003

This is a Tk error and should be reported at 
http://sf.net/projects/tktoolkit/
Log in (anonymous is fine) to add a comment.