Thank you! It's working now! :)
-- Francisco Pires - Real Basic 2005 r4 On 1/4/06, Steve Garman <[EMAIL PROTECTED]> wrote: > In a message regarding Listbox CellTextPaint doesn't work... dated Wed, 4 > Jan 2006 11:39:22 -0200, Xico Pires said that ... > > > I added this code in the CellTextPaint event to make negative numbers > > red and positive ones black, but it changes only when I click the > > listbox... What's wrong?? > > You're checking the row that's currently selected. You should be checking > the row that's being painted. > > You may have more luck with this. > > If val(me.cell(row,4))<0 then > g.foreColor = RGB(196, 0, 0) > else > g.foreColor=RGB(0 ,0, 0) > end > > > -- > Steve Garman > Using REALbasic 2005r4 Professional on Windows XP Pro > _______________________________________________ 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>
