You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

TVirtualStringTree编辑模式下Tab键无法向右切换单元格求助

TVirtualStringTree编辑模式下Tab键横向导航失效问题

问题描述

我了解到TVirtualStringTree在编辑模式下的标准单元格导航方式是:Tab键切换到下一个单元格;Shift+Tab切换到上一个单元格;Enter键结束编辑并向下移动。但我的情况是Tab键始终跳转到下方单元格,而非右侧。

当前设置

DFM配置

TreeOptions.MiscOptions = [toAcceptOLEDrop, toCheckSupport, toFullRepaintOnResize, toInitOnSave, toToggleOnDblClick, toWheelPanning, toEditOnClick]
TreeOptions.PaintOptions = [toShowButtons, toShowDropmark, toShowTreeLines, toThemeAware, toUseBlendedImages]
TreeOptions.SelectionOptions = [toFullRowSelect]
TreeOptions.EditOptions = toHorizontalEdit

PAS代码

VstData.TreeOptions.SelectionOptions := VstData.TreeOptions.SelectionOptions + [toFullRowSelect];
VstData.TreeOptions.MiscOptions := VstData.TreeOptions.MiscOptions + [toGridExtensions, toEditable, toCheckSupport];
VstData.TreeOptions.EditOptions := toHorizontalEdit;

疑问

我使用的是VCL版TVirtualTree 2024.02,是不是遗漏了某个选项来启用Tab键的横向导航?另外查看源码发现,Tab键的处理逻辑在procedure TVTEdit.WMKeyDown(var Message : TWMKeyDown);中,这段代码只处理节点间的导航,没有考虑列的切换。

内容的提问来源于stack exchange,提问作者Mattia72

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.11 13:32:35