Highlighting in red a Row in Listbox With a "Specific Word"

Is it posible to highlight an entire row, If a “specific word is found on X cell?”

For example, in my case when cell Says “egreso” changes the background color in red, with these:
[i] If row < me.ListCount Then

if me.CellTag(Row, Column) = "egreso"  then
  g.ForeColor = rgb(255,0,0)
  g.FillRect 0,0,g.Width,g.Height
End If

End If[/i]

Using the ChangeBackgroundPaint event.

But only paints the cell where the text appears. So I wonder if its possible to highlight the entire row where the word “egreso” appears.


I found if just Changing instead Row, column. For this: Row, 5

Because 5 is the column where these word appears and voila!! all the row that meets these statement are in red!!

You should return True to tell the Xojo framework that you have handled the drawing:

If row < Me.ListCount Then If Me.CellTag(Row, Column) = "egreso" Then g.ForeColor = RGB(255,0,0) g.FillRect(0, 0, g.Width, g.Height) Return True End End