Tk Library Source Code

View Ticket
Login
Ticket UUID: 1738192
Title: widget::scrolledwindow should use Tile in Windows.
Type: Bug Version: None
Submitter: nobody Created on: 2007-06-16 01:20:54
Subsystem: None Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-11-01 02:27:26
Resolution: Fixed Closed By: hobbs
    Closed on: 2007-10-31 19:27:26
Description:
Is there a reason for widget::scrolledwindow not use Tile scrollbars on Windows?
User Comments: hobbs added on 2007-11-01 02:27:26:
Logged In: YES 
user_id=72656
Originator: NO

ttk::scrollbar is now used on Windows in 1.2.

[email protected] added on 2007-06-18 18:56:41:
Logged In: NO 

Another point supporting the use of Tile's scrollbar (and Tile widgets in general) was made by Georgios Petasis on comp.lang.tcl:

Tk's scrollbar does not support themes. widget::scrolledwindow is ok as far as you want to always use xpnative theme on Windows XP, but becomes broken as soon as you change the theme.

nobody added on 2007-06-18 05:18:36:
Logged In: NO 

Another point supporting the use of Tile's scrollbar (and Tile widgets in general) was made by Georgios Petasis on comp.lang.tcl:

Tk's scrollbar does not support themes. widget::scrolledwindow is ok as far as you want to always use xpnative theme on Windows XP, but becomes broken as soon as you change the theme.

[email protected] added on 2007-06-18 04:18:48:
Logged In: NO 

Another point supporting the use of Tile's scrollbar (and Tile widgets in general) was made by Georgios Petasis on comp.lang.tcl:

Tk's scrollbar does not support themes. widget::scrolledwindow is ok as far as you want to always use xpnative theme on Windows XP, but becomes broken as soon as you change the theme.

[email protected] added on 2007-06-18 03:25:19:
Logged In: NO 

WinXP-style controls are used iif there is a manifest file. Wish has a manifest included on the executable (See http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/win/wish.exe.manifest.in?view=markup). If an application that embeds Tk wants xp-style controls when executed on XP, either it distributes a manifest along with the executable, or injects the manifest into the executable. Both ways have can cause problems (one more file to distribute and to depend on, modify the makefiles, etc).

IMHO, it's simpler to avoid the issue once and for all using Tile's scrollbars.

Besides, is there a reason for not using Tile's scrollbar and use tk's one, on a widget set that explicitly requires Tile?

hobbs added on 2007-06-16 08:38:56:
Logged In: YES 
user_id=72656
Originator: NO

Because Tk already uses native scrollbars on Windows since 8.0.