gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 15:17:37 28 4
gpt4 key购买 nike

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

最佳答案

设置HideSelection属性设置为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.

关于delphi - 在 Delphi 中,如何强制 tListView 始终显示选定的行,即使没有聚焦时也是如此。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8975487/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com