Delphi 树视图选择丢失

发布于 2024-10-31 04:04:57 字数 65 浏览 4 评论 0原文

一个小问题。即使焦点设置在其他组件上,我也需要让我选择的树视图项目保持视觉上的“选择”状态,有人知道哪个属性负责吗?

One small question. I need to have my selected treeview item stay visually "selected" even when focus is set on other component, anybody knows which property is responsible for that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潦草背影 2024-11-07 04:04:57

您正在查找的属性称为

HideSelection

从帮助中:

使用HideSelection指定是否
向用户提供视觉反馈
关于当前的选择
没有焦点时的树视图。
如果为 true,则所选节点不是
视觉上与其他节点不同
直到焦点返回到控件。如果
false,该节点始终出现
已选择。

The property you are looking for is called

HideSelection

From the help:

Use HideSelection to specify whether
the user is given visual feedback
about the current selection in the
tree view when it does not have focus.
If true, the selected node is not
visually distinct from other nodes
until focus returns to the control. If
false, the node always appears
selected.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文