在Firemonkey TListView中更改交替的颜色 [英] Change Alternating Colors in Firemonkey TListView

查看:96
本文介绍了在Firemonkey TListView中更改交替的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将tlistview拖放到表单上并将 AlternatingColors属性检查为true,默认情况下,它将在列表视图上的所有其他项目上显示灰色背景。

Dropping a tlistview onto a form and checking the property 'AlternatingColors' to true, by default it will show a grey background on every other item on the listview.

我的问题是,现在有人有人将这种颜色更改为其他颜色吗?

My question is does anyone now how to change this color to something else?

谢谢

推荐答案

您需要编辑TlistView的样式。

You need to edit the style of TlistView.

右键单击列表视图,选择编辑自定义样式,然后在结构面板中有两个项目: itembackground和 alternatinfitembackground。

Right-click on listview, choose "Edit Custom Style" and in the structure panel there are two items: "itembackground" and "alternatinfitembackground".

您可以从那里更改颜色。

You can change the colors from there.

这篇关于在Firemonkey TListView中更改交替的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆