From: Christopher C. <chr...@gm...> - 2020-07-29 22:06:18
|
On 7/29/2020 1:02 PM, Kevan Hashemi wrote: > Greetings, > > I'm running on MacOS Catalina 10.15.5. I have TclTk 8.6.10, compiled > from sources. I execute the following to create a text window. > > catch {destroy .f} > frame .f > pack .f -side top -fill both > text .f.text -relief sunken -border 2 -setgrid 1 -height 10 -width 20 > -wrap none > .f.text configure -yscrollcommand ".f.vsb set" > scrollbar .f.vsb -orient vertical -command ".f.text yview" > pack .f.vsb -side right -fill y > .f.text configure -xscrollcommand ".f.hsb set" > scrollbar .f.hsb -orient horizontal -command ".f.text xview" > pack .f.hsb -side bottom -fill x > pack .f.text -expand yes -fill both > for {set i 0} {$i <20} {incr i} { > .f.text insert end "$i\: This window should have scroll bars.\n" end > } > > In TclTk 8.5, this works fine. In 8.6.10 it works fine on Windows and > Linux it works fine. On MacOS 10.15 I get the text window, but the > scroll bar buttons are invisible and the scrolling is unreliable. > Sometimes the lines get garbled up as I scroll with the trackpad. The > scroll bar buttons appear to be present, because if I click on one by > luck, I can drag it up and down. I tried increasing the > elementborderwidth and border of the scrollbars, but that did not make > the buttons appear. On MacOS 10.13 I see the same problems. > > Is there some adjustment to the text or scrollbar widgets I need to make > to get them to appear? > > Best, Kevan > Hello Kevan, I personally suggest not posting to this mailing list due to the likelihood that anything posted here won't get responded to. I suggest instead posting to the comp.lang.tcl newsgroup, which is much more active; just be sure to mention you're using macOS. I tried your example with Tk 8.6.10 on macOS 10.15.6. Unfortunately I don't believe I was able to reproduce the issues you describe: I don't see text getting garbled, and the scrollbar "thumbs" are visible. The only issue I do observe is that mousewheel/trackpad scrolling is sometimes not reflected by the scrollbars (https://core.tcl-lang.org/tk/tktview?name=06d8246ba -- which should be addressed in the upcoming Tk 8.6.11 release). You may want to post/link to screenshots or a screen recording of the issues so that others might have a better guess of what is causing them. You may also want to try ttk::scrollbar (new in Tk Aqua 8.6.10) instead of the non-Ttk scrollbar. I recall some discussion not too long ago where one of the Tk Aqua developers advised against using the non-Ttk scrollbar on macOS due to its limitations, though I am not sure if that is still the case. Hope this helps Christopher A. Chavez |