Tk Source Code

View Ticket
Login
2019-12-14
20:08 • Closed ticket [b3b56ae8]: ttk widgets overwrite user-set -cursor option plus 6 other changes artifact: 578d832b user: fvogel
20:06
Fix [b3b56ae8dc]: ttk widgets overwrite user-set -cursor option check-in: c1a2f137 user: fvogel tags: trunk
20:05
Fix [b3b56ae8dc]: ttk widgets overwrite user-set -cursor option check-in: fcc9dfd7 user: fvogel tags: core-8-6-branch
2019-12-01
16:09 • Ticket [835e5e17] missing manual page for ttk::cursor status still Open with 3 other changes artifact: e95eabae user: fvogel
2019-11-02
14:32 • Add attachment b3b56ae8dc - ttk widgets overwrite user-set -cursor option.tcl to ticket [b3b56ae8] artifact: 4f1739c3 user: fvogel
13:53 • Ticket [b3b56ae8] ttk widgets overwrite user-set -cursor option status still Open with 3 other changes artifact: 3a5530a8 user: fvogel
13:51
Fix [b3b56ae8dc]: ttk widgets overwrite user-set -cursor option. Case of the ttk::combobox, ttk::spinbox and ttk::panedwindow. check-in: 7d357aca user: fvogel tags: bug-b3b56ae8dc
10:34 • Ticket [b3b56ae8] ttk widgets overwrite user-set -cursor option status still Open with 3 other changes artifact: 29fa7f1d user: fvogel
10:32
Fix [b3b56ae8dc]: ttk widgets overwrite user-set -cursor option. Case of the ttk::treeview. check-in: 498466be user: fvogel tags: bug-b3b56ae8dc
10:31 • Ticket [b3b56ae8] ttk widgets overwrite user-set -cursor option status still Open with 4 other changes artifact: e7749450 user: fvogel
10:30 • New ticket [b3b56ae8]. artifact: 53ee82b9 user: fvogel

Ticket UUID: b3b56ae8dcf67f4968a660f72ba21183afb7e973
Title: ttk widgets overwrite user-set -cursor option
Type: Bug Version: core-8-6-branch
Submitter: fvogel Created on: 2019-11-02 10:30:31
Subsystem: 88. Themed Tk Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-12-14 20:08:04
Resolution: Fixed Closed By: fvogel
    Closed on: 2019-12-14 20:08:04
Description:

Some ttk widgets overwrite the -cursor option set by the user.

For instance, the following creates a treeview with an 'X_cursor' mouse cursor option set, but when moving the mouse over the treeview, this cursor is not seen:

package require Tk
ttk::treeview .t -cursor X_cursor -columns {Col1 Col2}
.t heading #0 -text {Tree}
.t heading Col1 -text {Col1}
.t heading Col2 -text {Col2}
pack .t

This was originally reported at comp.lang.tcl.

User Comments: fvogel added on 2019-12-14 20:08:04:
Merged to core-8-6-branch and trunk.

fvogel added on 2019-11-02 13:53:27:

ttk::combobox, ttk::spinbox and ttk::panedwindow now also respect the user-specified -cursor option. This is [7d357aca7d].


fvogel added on 2019-11-02 10:34:55:

I have proposed a fix, see [498466bef8] in branch bug-b3b56ae8dc.

This fix addresses the treeview widget only so far, there are other ttk widgets impacted by this issue.


fvogel added on 2019-11-02 10:31:37:

The problem is that the ttk::treeview is overwriting the -cursor option whenever the mouse is moving over the widget.

This can be observed in this snippet.


Attachments: