Enhanced Treeview

Timeline
Login

Timeline

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

50 most recent check-ins

2026-02-22
02:03
Incorporated latest Mac Aqua updates from Tk trunk. Leaf check-in: 060595aa76 user: bohagan tags: trunk
2026-02-11
01:55
XP and Vista theme updates to add scrollbar and spinbox hover states and fixed tab state order. Added more treeview states for heading, sort buttons, items, treeview, and indicators. This gives Windows the sorted column look like in the Mac Aqua theme. check-in: 0be1041650 user: bohagan tags: trunk
2026-02-05
01:43
Fix from Csaba to the Vista CheckTreeview style so items appear with the same left margin of 3p as in the Treeview style. check-in: 8ae15f42fd user: bohagan tags: trunk
2026-02-03
17:01
Changes from Csaba so the Checkbutton.indicator element of the alt theme can use its own colors rather than those of CheckTreeview.Item when the latter is selected. At the same time, the two changed option names are consistent with the ones used in the themes clam and default, hence they should be present in the "official" version, too. check-in: 6c8147cfcd user: bohagan tags: trunk
01:32
The Checkbutton.indicator element of the themes alt, clam, and default is only drawn if the containing row is vertically fully visible. These changes from Csaba remove an unnecessary sanity check in the theme-specific drawing routines for the Checkbutton.indicator element to allow partially visible check buttons. check-in: 47da7384e3 user: bohagan tags: trunk
01:06
Replaced ckalloc, ckfree, etc. with Tcl_Alloc, Tcl_Free, etc. and other changes from Tk 9.1. check-in: 52ad7ed260 user: bohagan tags: trunk
2026-02-02
10:42
Changes from Csaba to toggle CheckTreeview state when item is selected or deselected, not just for check button changes. check-in: f3bd99b7ae user: bohagan tags: trunk
2026-02-01
18:54
Changes from Csaba to adjust the placement of the Checkbutton.indicator element within the CheckTreeview.Item in a scaling-aware manner. check-in: e842350a6e user: bohagan tags: trunk
2026-01-27
02:28
Changes from Csaba to the Aqua and Windows themes to use different selection colors when the Treeview has lost the focus. check-in: 5f702e2470 user: bohagan tags: trunk
2026-01-17
19:31
Improved Aqua non-sort column foreground color from Csaba. check-in: 02e00d9c02 user: bohagan tags: trunk
2026-01-11
23:04
Merged latest changes from Tk aqua_select_colors branch and suggested updates from Csaba. check-in: 446163b7f2 user: bohagan tags: trunk
22:50
Reimplemented the row and heading height tests. Changed treeview so changes in -rowheight and -headingheight options take effect immediately. More test case updates for cross-platform compatibility. check-in: 490c202120 user: bohagan tags: trunk
02:23
Finished updating bindings for Mac unique needs. Intent is to blend Tk with Mac conventions for consistency across Tk widgets, but also adhere to Mac standards. Changed name of user defined function from ::ttk::treeview::EditItem to ::ttk::treeview::ActivateItem. check-in: 1abfefa23e user: bohagan tags: trunk
2026-01-10
02:27
Updated to use background state to support Tk repo aqua_select_colors branch changes. check-in: ea496055c3 user: bohagan tags: trunk
2026-01-09
20:55
Added state to item configure options. This allows for control of item states similar to how the heading subcommand controls the column states. check-in: e63b9b6f7f user: bohagan tags: trunk
05:40
Updated test cases to account for adding back in widget focus. Updated bindings for more Mac compatibility. check-in: a929903b1b user: bohagan tags: trunk
2026-01-08
19:58
Fixed issue with last row being resized the crashing when widget height is shrunk. Missed as part of changes from https://core.tcl-lang.org/tk/info/d82fa2953a. check-in: c1a4dc0242 user: bohagan tags: trunk
2026-01-06
22:00
Fixed issue with swapped non-Aqua sort indicator states. Should be alternate is up and selected is down. check-in: 6e310ae19c user: bohagan tags: trunk
22:00
Added back show focus rings for alt and default themes. check-in: f74addaabf user: bohagan tags: trunk
20:39
Incorporated updates from Csaba to correct Mac CheckTreeview selected items issue and sort indicator not scaling issue. check-in: 176902a67b user: bohagan tags: trunk
19:24
Merged latest changes from Tk aqua_select_colors branch check-in: 669a14cfed user: bohagan tags: trunk
2026-01-04
02:57
Updated test cases check-in: d1a089cb07 user: bohagan tags: trunk
2026-01-02
20:30
Proposed patch for using the native selection colors for listbox and ttk::treeview widgets on aqua. Imported from aqua_select_colors branch in Tk. check-in: 13116ebf1f user: bohagan tags: trunk
04:45
Aqua theme improvements. Reworked auto size all columns to work on Aqua theme. Added auto size all columns to demo and increased edit cell entry size so text isn't cut-off. check-in: afd8eb809f user: bohagan tags: trunk
2025-12-31
23:53
Changed Treeview item focus ring implementation. Switched from the focus ring being a part of the row element to a separate element. This is needed to add a padding element between focus ring and row contents for the Aqua theme. The ttk::style Row options are now -focuscolor, -focussolid, and -focusthickness. Changed to now set the focus bit in focus item state. This is needed for ttk::style to use focus state. Updated themes to use new options. Changed Windows draw focus ring to use generic implementation. This adds support for changing the focus color and solid options. check-in: cb256a2afb user: bohagan tags: trunk
03:00
Reworked return, space, and tab key handlers to separate item from cell only actions. Invoke is used to perform default action (open/close, select, etc.) Activate is used to perform edit or other user defined action. check-in: 8a84f62383 user: bohagan tags: trunk
2025-12-29
05:05
Fixed swapped format and type options in copy to clipboard check-in: 549cf6d875 user: bohagan tags: trunk
03:34
Implemented auto row height sizing to fix long-standing pain point with Treeview. With this change, the ::ttk::setTreeviewRowHeight function is no longer needed. It has been changed to a null procedure for backwards compatibility. The command "ttk::style configure Treeview" now supports two options: -rowheight and -headingheight. If set to 0, the row/heading heights will be auto sized. A value > 0 will override the auto sizing and set the height in pixels. This also supports backwards compatibility. The treeview widget has two new config options: -rowheight and -headingheight. If the associated ttk:style option is 0, then the values for these are auto calculated using the theme and font. The user can override these values until the next theme or font change. If the associated ttk::style value is > 0, then that value will be used. This can't be overridden. check-in: 8d32f9c9b1 user: bohagan tags: trunk
2025-12-28
23:20
Updated cell edit to properly place insertion cursor when starting edit. check-in: 9a1b8d94d0 user: bohagan tags: trunk
05:59
Added double click binding for divider to auto size a column or with Alt key all columns. check-in: addfe27115 user: bohagan tags: trunk
2025-12-27
23:07
Moved setTreeviewRowHeight from ::ttk to ::ttk::treeview namespace. Old function just points to new one for backwards compatibility. Updated to also check the indicator size and set the widget heights. Added binding to auto adjust row size for theme and font changes. check-in: 6ed4d67764 user: bohagan tags: trunk
05:15
Fixed the CheckTreeview not showing background or stripe colors issue. Replaced create CheckTreeview with new Create_CheckTreeview_Style function. The issue was the copy config from Treeview to CheckTreeview didn't work. The copy needs to run after the themes have been created. check-in: 1f431208a6 user: bohagan tags: trunk
2025-12-26
23:25
Updated Mac bindings to better match Finder check-in: c8c0d70e98 user: bohagan tags: trunk
2025-12-25
04:51
Moved sorted heading style from demo to Aqua theme. Standardized treeview theme config layouts. For Aqua theme, removed default treeview heading height and now call setTreeviewRowHeight. check-in: cf6bd09e78 user: bohagan tags: trunk
2025-12-24
02:11
Split activate item from edit item in bindings. Added Shift-B1 binding in heading to do column select Moved press tree item indicator handler to ::ttk::treeview::Press to make ttk::treeview::Select.press a select only function. check-in: 7f95420e6c user: bohagan tags: trunk
2025-12-23
18:57
Added ttk::entry cell edit example to treeview.tcl demo check-in: 9d5bae477e user: bohagan tags: trunk
03:24
Added configure options to set/get row and heading height. check-in: ed25fea614 user: bohagan tags: trunk
2025-12-22
01:25
Refactored selection drag to do autoscroll up/down or left/right if B1-Motion goes outside widget. Refactored get top and bottom visible items and first and last items. check-in: 959088662b user: bohagan tags: trunk
2025-12-21
00:33
Listbox compatibility updates: Use first item in widget as default for keyboard navigation. Remove multiple mode from B1 drag to extend selection. Added 4th case to select item for Activate Item function. check-in: c042fc9874 user: bohagan tags: trunk
2025-12-18
03:59
Mac compatibility fixes: Fixed issue in treeview demo where sort indicators were not removed from previous sort columns. Disabled scroll lock bindings on Mac. check-in: 4fb9895aad user: bohagan tags: trunk
02:51
Added checks for deleted widget in binding handlers check-in: 54fd8dc139 user: bohagan tags: trunk
2025-12-14
23:07
Incorporated patch for wrong window width in ttk::treeview. See https://core.tcl-lang.org/tk/artifact/c348e5c61657f9b2 check-in: 580ceb5553 user: bohagan tags: trunk
05:03
Added focus, show, and state control menus to demo. Corrected styles menu. check-in: 754c0a4d74 user: bohagan tags: trunk
04:01
Added invert selection virtual event check-in: 6c6fb0ad1c user: bohagan tags: trunk
03:19
Updated binding handlers to honor disabled state and not allow focus or selection operations check-in: 95173fa70b user: bohagan tags: trunk
02:31
Updated open and close item handlers to handle cell mode. Fixed so pressing open/close indicator won't select the item. Fixed so that an open/close won't affect the focus or selection except when the focus/selected item is hidden by the close, in which case set focus/selection to item being closed. Added F2 binding to call edit cell and Control-Shift-space to select all. check-in: ea70414e4e user: bohagan tags: trunk
2025-12-13
01:42
Changed browse mode to match Listbox in that selection will follow mouse with B1-Motion. check-in: 334fb5cbe5 user: bohagan tags: trunk
2025-12-11
05:32
Added <Enter> and <Leave> events to tag bind. These can be used for tooltips, etc. Added current command to return current item and cell under the mouse pointer for use in the <Enter> and <Leave> event handlers. Added unset of the focus, selection anchor, and current items when referenced item is deleted or detached. check-in: f545af3ba1 user: bohagan tags: trunk
2025-12-10
03:52
Scaling improvements from Csaba Nemethi: Properly scale open/close indicators. Scale XFT fonts on Linux and Mac. Refresh ttk::entry and ttk::combobox widgets to correct scaling related font and indicator issues. check-in: 0e81719bd7 user: bohagan tags: trunk
2025-12-07
22:18
More improvements from Csaba: Added disabled checkbutton state support. Will only create TkSelectedFont if it doesn't already exist. Made the arrowBlank image consistent with arrowUp and arrowDown. check-in: 1d19a341ca user: bohagan tags: trunk