在 Delphi 中,如何强制 tListView 始终显示选定的行,即使没有聚焦时也是如此。

发布于 2024-12-28 12:46:43 字数 63 浏览 2 评论 0原文

tListView 的选定行显示为蓝色,但仅当控件具有焦点时才显示。我希望始终显示所选行,无论控件是否具有焦点。

The selected row of a tListView appears blue, but only when the control has focus. I'd like the selected row to always be displayed, whether the control has focus or not.

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

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

发布评论

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

评论(1

泛滥成性 2025-01-04 12:46:43

HideSelection 属性设置为 False

确定当焦点转移到另一个控件时列表视图是否给出所选项目的视觉指示。

HideSelection 设置为 false,即使列表视图没有焦点,也可以提供列表中所选项目的视觉反馈。将 HideSelection 设置为 true 可以仅在列表视图获得焦点时显示所选内容。 HideSelection 不影响选择的实际值,仅影响视觉指示。始终将 HideSelection 设置为 false 可能会使具有许多列表视图的表单看起来过于繁忙。

Set the HideSelection property to False.

Determines whether the list view gives a visual indication of which item is selected when focus shifts to another control.

Set HideSelection to false to provide visual feedback of the selected item in the list even when the list view does not have focus. Set HideSelection to true to show the selection only when the list view has focus. HideSelection does not affect the actual value of the selection, only the visual indication. Always setting HideSelection to false can make forms with many list views look too busy.

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