ListIconGadget : set text color per line

Windows specific forum
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

ListIconGadget : set text color per line

Post 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 ?
- Registered PB user -

Using PB 4.00
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: ListIconGadget : set text color per line

Post by PB »

> Do I miss something ?

Yes, this entire topic:

viewtopic.php?t=13226

;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Thanks you ;)
- Registered PB user -

Using PB 4.00
Post Reply