作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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/
我是一名优秀的程序员,十分优秀!