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:
(text/x-fossil-wiki)
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. [https://stackoverflow.com/questions/23886052/what-is-the-resource-id-for-column-resize-cursor|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).
|