Try something like this in the CellBackgroundPaint event. This example
paints every other line differently...
if row mod 2=0 then
g.ForeColor = RGB(255,255,255)
else
g.ForeColor = RGB(225,225,225)
end if
g.fillrect 0,0,g.width,g.height
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sergio
Sent: Monday, June 05, 2006 8:36 AM
To: REALbasic NUG
Subject: Set line color in listbox
Hello all!
Is there any way to set a background color for a row of a listbox? I need it
to hilight one or more lines in particular condition...
Thanks a lot!
Sergio Tamborini - Brescia
-----
Molto lungi Fra Porcello tu non anderai, perchè io sono colui che tu
cercando vai... Io sono Robin Hood!
Duffy Duck
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>