| 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:
- b3b56ae8dc - ttk widgets overwrite user-set -cursor option.tcl [download] added by fvogel on 2019-11-02 14:32:13. [details]
