From mschwartz at medanalytics.com  Fri Jun  6 10:03:11 2003
From: mschwartz at medanalytics.com (Marc Schwartz)
Date: Fri Jun  6 16:02:21 2003
Subject: [Rd] stuck tcltk scrollbars under Windows XP
In-Reply-To: <00d701c32c33$4fc9df10$0201a8c0@MARC>
Message-ID: <00d801c32c34$5e1ee370$0201a8c0@MARC>

SNIP

>...
>tkbind(window2, "<Return>", onOK)
>
># Here is the change
>tkwm.deiconify(window2)
>tkgrab.set(window2)
>tkfocus(xBox)
>tkwait.window(window2)
>
>Using the above code, I seem to have eliminated the scroll bar
>problem. This is the approach that I took with the tkSelectList()
>function which I sent to you during our offline exchange.
>
>Note that I have tkfocus() set to the scrollbar xBox and not to
>window2, which results in the mouse scroll wheel working, whereas it
>does not when the focus is set to window2.
>
>Lastly, by using the tkwm.deiconify(...) function window2 is raised
to
>obtain focus.  That was a quirk that I found by experimentation.


Quick correction:

The sentence in the paragraph above should read:

"Note that I have tkfocus() set to the **ListBox** xBox..."

Sorry for any confusion.

Marc


[Rd] stuck tcltk scrollbars under Windows XP
Marc Schwartz