Sow on a maxgui canvas

BlitzMax Forums/BlitzMax GUI Programming/Sow on a maxgui canvas

embedding ogre was disapointingly easy! ;)



I wonder if images with transparent areas will work with it too...
Buttons seem to work really well and combobox's work flawlessly!

I tried a panel with a png but the transparent areas show up as white, anyone got any ideas?

I'll probably end up adding ogre overlay images (probably easier!)

does anyone know a winapi solution thats basically how this and maxgui works...

win32panel.cpp currently uses BitBlt SRCCOPY, for alpha that approach will need to be modified. I haven't done any research into this but the GDI has a function BLENDFUNCTION which may mean the OS is capable of performing the alpha blend.

I'm fairly sure you can have windows with transparent areas (at least in XP?)

It would be nice to see this, but only eye candy value I guess!

    					BitBlt(hdc, x, y, _bgw,_bgh, hdc3, 0, 0, SRCAND);
						BitBlt(hdc, x, y, _bgw,_bgh, hdc2, 0, 0, SRCPAINT);


tried with this (hdc3 is a mask made from all red pixels) however it looks like its working but there is somthing black behind the panel?

maybe theres a CreateWindowEx flag??