When, on 64-bit Windows 7, I attach a ttk scrollbar to a text widget
with and put nothing in the text widget, the scrollbar thumb fills the
scrollbar trough. This is not beautiful.
The scrollbar has no thumb in this situation, if I use tk scrollbar or
run on XP.
The bug appears on 64-bit Windows 7 whether I use Tcl\Tk 8.5.8.1 or 64-
bit Tcl\Tk 8.5.9.0
This code:
text .t -yscrollcommand {.s set}
ttk::scrollbar .s -orient vertical -command {.t yview}
pack .s -side right -fill y
pack .t -expand yes -fill both
demonstrates the problem.
I was wondering if anyone else has seen this and maybe knows a
workaround aside from the obvious one of using scrollbar in place of
ttk::scrollbar?
BTW disabling the ttk::scrollbar seems to have no effect. I think the
guy with the
giant thumb, is disabled already.
Also, the fact that tk works and ttk does not, made me to wonder
whether I was seeing
a bug in windows theming, not tickle. However, in a C# Forms test app,
a scrollbar attached to an empty rich edit (a very crude text widget),
has no thumb.
|
|
0
|
|
|
|
Reply
|
Angus
|
12/11/2010 12:37:06 AM |
|
Angus <angus633@hotmail.com> writes:
>When, on 64-bit Windows 7, I attach a ttk scrollbar to a text widget
>with and put nothing in the text widget, the scrollbar thumb fills the
>scrollbar trough. This is not beautiful.
>
>The scrollbar has no thumb in this situation, if I use tk scrollbar or
>run on XP.
>
>The bug appears on 64-bit Windows 7 whether I use Tcl\Tk 8.5.8.1 or 64-
>bit Tcl\Tk 8.5.9.0
>
>This code:
> text .t -yscrollcommand {.s set}
> ttk::scrollbar .s -orient vertical -command {.t yview}
>
> pack .s -side right -fill y
> pack .t -expand yes -fill both
>
>demonstrates the problem.
>
>I was wondering if anyone else has seen this and maybe knows a
>workaround aside from the obvious one of using scrollbar in place of
>ttk::scrollbar?
>
>BTW disabling the ttk::scrollbar seems to have no effect. I think the
>guy with the
>giant thumb, is disabled already.
>
>Also, the fact that tk works and ttk does not, made me to wonder
>whether I was seeing
>a bug in windows theming, not tickle. However, in a C# Forms test app,
>a scrollbar attached to an empty rich edit (a very crude text widget),
>has no thumb.
I doubt this is specific to x64 but common to ttk on the Vista or Win7
themes. When the scrollbar will fill the trough (.scrollbar get returns
{0.0 1.0}) the widget is disabled. So what is needed is a way to specify
the thumb should be hidden when disabled. However, we just ask the
windows theme engine to draw a disabled thumb and it seems this is not
quite the same as the stock widget.
I suggest you raise this as a bug at SourceForge to keep it in view.
--
Pat Thoyts http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
|
|
0
|
|
|
|
Reply
|
Pat
|
12/11/2010 9:55:15 PM
|
|
|
1 Replies
253 Views
(page loaded in 0.027 seconds)
Similiar Articles: Windows 7 64-bit issues - comp.lang.forthttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ... When, on 64-bit Windows 7, I attach a ttk scrollbar to a text widget with and put nothing in the text widget ... Color management in Win 7 (64 bit) - comp.graphics.apps.photoshop ...ttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ... When, on 64-bit Windows 7, I attach a ttk scrollbar to a text widget with and put nothing ... Acc2007: Disable Filter option horizontal scrollbar on Access ...ttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ... However, in a C# Forms test app, a scrollbar attached to an ... comp.databases.ms-access - page 4 Acc2007 ... JTable horizontal scrollbar problem - comp.lang.java.gui ...ttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ... Process batch pause while alert window pop and color table problem ... ... Jtable Scrollbar ... ... databases ... Background color for a ttk:treeview column - comp.lang.tcl ...Color management in Win 7 (64 bit) - comp.graphics.apps.photoshop ... When, on 64-bit Windows 7, I attach a ttk scrollbar to a text widget with and put nothing ... Ttk widgets: changing the background colour? - comp.lang.tcl ...... knows how can I change the background colour ... I attach a ttk scrollbar to a ... Python 2.7/Windows: tkinter/ttk widgets with transparent ... I'm also looking for a way to ... Scroll in PageMaker 7.0 in XP - comp.graphics.apps.pagemaker ...ttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ..... tk scrollbar or run on XP. The bug appears on 64-bit Windows 7 whether I use Tcl\Tk 8.5.8.1 or 64- bit ... JTable scrolling issue - comp.lang.java.programmerttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ..... to read the ... batch pause while alert window pop and color table problem ... ... Jtable ... Access 2010 Treeview & ImageListCtrl - comp.databases.ms-access ...I'm having the exact same problem, with the 64-bit versions of Windows 7 and Office 2010. ... Ttk widgets: changing the background colour? - comp.lang.tcl Are newbie questions OK in here? - comp.lang.asm.x86There are other 64 bit C and C++ compilers for Windows, some of which support ... (newbie) SCSI Problem with SUN Fire V440 - comp ... how to set ttk::treeview tree label width ... Acc2007: Disable Filter option horizontal scrollbar on Access ...ttk::scrollbar problem on 64-bit Window 7 - comp.lang.tcl ... However, in a C# Forms test app, a scrollbar attached to an ... comp.databases.ms-access - page 4 Acc2007 ... Windows 7 sleep and hibernation problems (associated with Windows ...Last month, I upgraded from 64-bit Vista to 64-bit Windows 7 Home Premium ... the recording works fine when I re-watch it later (no time scrollbar or fast-forward issues). 7/23/2012 9:30:08 PM
|