Tk Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: ec7fa6bb5ce9f532853666639963399e1455fe06
Title: Column and Row resize cursors could use better cursors
Type: Bug Version: 8.6
Submitter: anonymous Created on: 2013-08-20 17:33:46
Subsystem: 88. Themed Tk Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2019-05-16 21:58:23
Resolution: None Closed By: nobody
    Closed on:
Description:
Here's an example tree view widget:

-----
package require Tk
ttk::treeview .tree
.tree configure -columns "right"
.tree heading #0 -text "left"
.tree heading 0 -text "right"
pack .tree
-----

On Win7 x64, when you try to resize the columns the cursor will change into the horizontal resize cursor (the same one as the one used for the edge of the window).

However a more appropriate cursor is the horizontal /column/ resize cursor. There's also a row resize cursor as well on Win32. They're listed here:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb545459.aspx#concepts

They're under the "Compound mouse interactions" table in the row labeled "Resizing", they're named "Row and column resize". They're the cursors used by default for column/row resize in most apps, e.g. Windows Explorer, uTorrent, etc.
User Comments: fvogel added on 2019-05-16 21:58:23:

The page you linked to is now a 404. I guess an equivalent today is https://docs.microsoft.com/en-us/windows/desktop/uxguide/inter-mouse.

How to display this column resize cursor is a good question. Googling says that the cursor ID is IDC_SIZEWE. However this is what is already used in the Tk source code, and it is displaying the horizontal resize cursor, not the column resize cursor.

Looking in the guts of my Vista box here I didn't find this column resize cursor (in C:\Windows\Cursors).