if dw_1.object.flag_source[ll_row] = 'P' then ltvi_item.pictureindex=5 end if
if dw_1.object.flag_source[ll_row] = 'M' then ltvi_item.pictureindex=7 end if
if dw_1.object.flag_source[ll_row] = 'D' then ltvi_item.pictureindex=6 end if [解决办法] 同意楼上的,就是PictureInex索引 事先给控件添加图片,就是控件的Pictures属性里一栏一栏添加 [解决办法] PB最强大的就是数据窗口,所以你可以用树型窗口来实现,这个做不同颜色还是很方便的,只是这个在选节点上有点麻烦,这要看你具体想要实现什么了