ListIconGadget : set text color per line
Posted: Wed Dec 29, 2004 5:45 pm
Hi,
I am using a ListIconGadget, and I would want if a criteria is matched, to write let's say in blue a line, but to continue to write the following lines in black.
I have found that with SendMessage_() API you can modify your Gadget, but I can't find exactly what I want.
The following code :
set the text color of ALL items to blue, and if I call again this API to set it back to black, again ALL items are set black.
It seems that it does not exist a constant such as "#LVM_SETITEMTEXTCOLOR" which would be very usefull.
Do I miss something ?
I am using a ListIconGadget, and I would want if a criteria is matched, to write let's say in blue a line, but to continue to write the following lines in black.
I have found that with SendMessage_() API you can modify your Gadget, but I can't find exactly what I want.
The following code :
Code: Select all
SendMessage_(GadgetID(Gadget), #LVM_SETTEXTCOLOR, 0, RGB(0,0,255))
It seems that it does not exist a constant such as "#LVM_SETITEMTEXTCOLOR" which would be very usefull.
Do I miss something ?