Okay I have read the documentation and I am beginning to believe it’s not possible to do what I want to do and that is ONLY bold the DesktopListbox Header. I already have certain cells being bolded based on their value as well as cell border color but I want the Text in the Header to be bold… and I can’t figure this out and I don’t see a clear reference… can it be done?
Also… does the Transparent feature not work with Linux systems? I was hoping to create a semi-transparent DesktopListbox, but it doesn’t seem to work
It used to be that you could adjust properties on the Graphics object passed to a Paint event to affect the drawing by the framework, but the documentation for PaintHeaderContent seem to imply that is not the case. However, the signature and the description conflict on the return value, so I don’t really know what to believe.
It sure would be nice if you could trust the docs, but you’re just going to have to test it.
mthLoadListBox( ) does the actual loading and cell formatting I want and works perfectly. But the header still remains stubbornly not bold. I even use the PaintHeaderBackground with no luck…
' ---- Variable Defined ----
' ---- Code In Action ----
Select Case column
Case 0
g.Bold = True
Case 1
Case 2
g.DrawingColor = Color.Green
g.FillRectangle(0, 0, g.Width, g.Height)
Return True
Case 3
g.DrawingColor = Color.Red
g.FillRectangle(0, 0, g.Width, g.Height)
Return True
Case 4
g.DrawingColor = Color.Teal
g.FillRectangle(0, 0, g.Width, g.Height)
Return True
Case 5
Case 6
End Select
Okay so I basically created my own header using Labels and setting the format the way I wanted then took the time to align each label over the appropriate column. Not how I wanted to do it… but it works!