Hi Listbox gurus - I’m working with a new listbox layout that draws the contents of cells in the CellBackgroundPaint and CellTextPaint events. I’ve gotten most elements sorted, except that PNG images with transparency are not being drawn properly. This is the gist of my code in the CellBackgroundPaint event:
The image tapepic32 is recognized as having a mask and both the image viewer in the IDE and Preview display it properly. However, when it is drawn in the cell, the transparent area is white.
This is being tested on Windows 8.1 and OS X 10.9.4 (Cocoa) with Xojo 12r2.
I’m interested in what you man by [quote]forced the Transparent setting for the PNG to White [/quote] . Is that something you do in a graphics package, or something you do in Xojo?
[quote=113694:@Tim Jones]Hi Listbox gurus - I’m working with a new listbox layout that draws the contents of cells in the CellBackgroundPaint and CellTextPaint events. I’ve gotten most elements sorted, except that PNG images with transparency are not being drawn properly. This is the gist of my code in the CellBackgroundPaint event:
The image tapepic32 is recognized as having a mask and both the image viewer in the IDE and Preview display it properly. However, when it is drawn in the cell, the transparent area is white.
This is being tested on Windows 8.1 and OS X 10.9.4 (Cocoa) with Xojo 12r2.[/quote]
Have you tried the code in a Canvas Paint event instead of the ListBox?