#2769 Scrollbar config not working

obsolete: 8.4.19
closed-wont-fix
5
2010-03-05
2010-03-04
No

scrollbar .sb
pack .sb
.sb configure -borderwidth 3
.sb configure -elementborderwidth 3
.sb configure -relief flat
.sb configure -activerelief flat

Win XP
these configurations actually have no effect.

thx

Discussion

  • Pat Thoyts

    Pat Thoyts - 2010-03-05
    • status: open --> closed-wont-fix
     
  • Pat Thoyts

    Pat Thoyts - 2010-03-05

    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

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks