Tk Source Code

Check-in [48d0850e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Tests: do not depend on the size of scrollbar arrows on Windows.

The arrows and the minimal slider length grow with the scale (60 pixels at 350%). Use longer scrollbars at high scale and positions relative to the arrows and the trough.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | tests-high-dpi
Files: files | file ages | folders
SHA3-256: 48d0850ed7c30293f573cf23986d3ec64e29abcccdc508cbe309cdf2f8a02eb2
User & Date: serhiy.storchaka 2026-11-08 10:43:49.046
References
2026-11-08
10:49 • Ticket [deca13e8] Tests fail at high display scale status still Open with 3 other changes artifact: d45384ab user: serhiy.storchaka
Context
2026-11-08
10:43
Tests: do not depend on the default sizes in points set in tk.tcl.

The default panedwindow sash width, the scale sizes and the X11 scrollbar width are specified in points in tk.tcl and grow with the DPI. The tests passed only if option.test, which clears the option database, was run before them. Set the sizes which the tests assume explicitly. check-in: aa57e2a1 user: serhiy.storchaka tags: tests-high-dpi

10:43
Tests: do not depend on the size of scrollbar arrows on Windows.

The arrows and the minimal slider length grow with the scale (60 pixels at 350%). Use longer scrollbars at high scale and positions relative to the arrows and the trough. check-in: 48d0850e user: serhiy.storchaka tags: tests-high-dpi

10:43
Tests: do not depend on the size of fonts and lengths specified in points.

They grow with the DPI. Use pixel sizes which are the same as before at 96 DPI, or positions computed from the layout (textDisp, frame, textImage and text-27.15b). check-in: 4d3273ea user: serhiy.storchaka tags: tests-high-dpi

2026-10-02
13:40
Tests: do not depend on the size of scrollbar arrows on Windows.

The arrows and the minimal slider length grow with the scale (60 pixels at 350%). Use longer scrollbars at high scale and positions relative to the arrows and the trough. check-in: 7839e53f user: serhiy.storchaka tags: tests-high-dpi

Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/scrollbar.test.