Transparent Desktop ListBox

So I’ve read many articles/posts regarding transparency and my only take-away is that ‘it might be possible’. I have a Windows 11 desktop app on Xojo 2025v1.1

I have a Desktopcontainer with a blue gradient background image, a DesktopLabel, a (custom) button and a DesktopListBox. The label transparency works fine but the listbox is another matter.

I’ve disabled the DesktopContainer “Has Background color” , set the listbox to Transparent and added Return True to the PaintCellBackground event.. this gives me a plain white listbox background? Am I missing something or am I embarking on a fool’s errand?

(I’m drawing a header colour of blue in the PaintHeaderBackground event)

Thanks

The Xojo Listbox isn’t designed for this, although it should be possible with some effort.

However, I wouldn’t be surprised if piDog’s DataView or GraffitiSuite had such a feature.

If you plan to place other Xojo controls below the ListBox, I strongly advise against it. It will only lead to frustration.

What you want is possible by using the event that paints cell backgrounds. You will need to calculate what to paint based on the row number and how much the list has been scrolled

So I’d need to calculate which part of the background image to paint in each cell? That might be a step too far but appreciate the suggestion.