请教:ListView用vsIcon样式,能否设定某一item的字体?
请教:ListView用vsIcon样式,能否设定某一item的字体?
比如listview中用代码添加了8个item,其中需要将某个item的字体设置成别的颜色,看起来和其它的7个item不一样。
请问能否实现?
[解决办法]
自画处理吧,Draw相关的事件
[解决办法]
设置OnwerDraw为True;
在AdvancedCustomDrawItem事件写:
if Item.Caption='A' then //自己写满足的条件
ListView1.Canvas.Brush.Color:=clRed;
[解决办法]