Page 1 of 1

ListIconGadget : set text color per line

Posted: Wed Dec 29, 2004 5:45 pm
by newbie
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 :

Code: Select all

SendMessage_(GadgetID(Gadget), #LVM_SETTEXTCOLOR, 0, RGB(0,0,255))
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 ?

Re: ListIconGadget : set text color per line

Posted: Wed Dec 29, 2004 7:44 pm
by PB
> Do I miss something ?

Yes, this entire topic:

viewtopic.php?t=13226

;)

Posted: Wed Dec 29, 2004 8:01 pm
by newbie
Thanks you ;)