| User Comments: |
patthoyts added on 2010-03-05 22:06:29:
allow_comments - 1
This is by design. On Windows we have always used native buttons and scrollbars. Your application will look extremely strange to a Windows user if you change the look of the scrollbars.
However, you may of course use the ttk::scrollbar in Tk 8.5 and above. If you construct a style for your scrollbar that uses elements from the default or alt themes you can use the theming engine to control the look of the widget even on XP or Vista.
To get you started on that route:
ttk::style element create My.Vertical.Scrollbar.trough from default
ttk::style layout My.Vertical.TScrollbar \
[string map {Vertical My.Vertical} [ttk::style layout Vertical.TScrollbar]]
ttk::style configure My.Vertical.TScrollbar -borderwidth 3 -relief flat
ttk::scrollbar -s2 -style My.Vertical.TScrollbar
|