Sow on a maxgui canvas

BlitzMax Forums/MaxGUI Module/Sow on a maxgui canvas

Chris C(Posted 2006) [#1]
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!


Chris C(Posted 2006) [#2]
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!)


Chris C(Posted 2006) [#3]
does anyone know a winapi solution thats basically how this and maxgui works...


skidracer(Posted 2006) [#4]
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.


Chris C(Posted 2006) [#5]
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!


Chris C(Posted 2006) [#6]
    					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??