Hi Paul, all,
I was searching other information (watch my today other conversation) when my eyes saw the SpecialFolderPaths.xojo_binary_project example. ? It may hold what I seek !
I fired it and feel it need some salt (or pepper ?).
Can you add the code below into the SpecialFolderList (ListBox) ?
[code]Function CellBackgroundPaint(g As Graphics, row As Integer, column As Integer) As Boolean
If Row < Me.ListCount And Me.Cell(Row,1) = “Nil” Then
g.ForeColor = RGB(255,128,64) // This background color to highlight Nil
If row Mod 2 = 0 Then
g.ForeColor = RGB(128,128,255)
g.ForeColor = RGB(128,255,128)
g.FillRect(0, 0, g.Width, g.Height)
The first idea was to highligh the Nil entries, and I added a three colors sensitive code. After all, this is an example project, so show the reader (user) a way to set a three background colors in a ListBox (Odd, Even and text based background)
Oh: you may dislike the used colors: change them at will.
BTW: this is your example, feel free to skip this advice.