Quantcast
Viewing all articles
Browse latest Browse all 3726

Dark Mode + ListBox + Alternate Background colors

I followed the Documentation and used in CellBackgroundPaint Event:

If row Mod 2 = 0 Then
g.DrawingColor= &cD2FFF3
Else
g.DrawingColor= &cD2EDF5
End If
g.FillRectangle(0, 0, g.Width, g.Height)

… and because I have to use the dark mode, I saw no text, unless I select a Row.

How do I Draw the Text ?

The code below have an error:

// Draw the Text
Var the_Text As String

  the_Text = Me.CellValueAt(row,column) // Error here
  
  g.DrawingColor = &c000000 // Black
  g.DrawText the_Text,0,LB.RowHeight - 2

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3726

Trending Articles