Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Transparent splash screen

<< < (5/6) > >>

MortenMacFly:

--- Quote from: Der Meister on November 17, 2006, 09:27:47 pm ---Got it!  :D

--- End quote ---
Thomas: Is this also something we had forgotten to test for the about dialog??? Should I start over again and loose another 3 hours? ;-)
With regards, Morten.

thomas:

--- Quote from: Der Meister on November 17, 2006, 09:27:47 pm ---Got it!  :D

Here is the patch that works for me:
--- End quote ---
Great, thank you :)
Hmm... instead of destroying the clip region right after creating one, shouldn't it work to never create one, too? I'll try that approach (so, only use clip for Windows). Please complain if it doesn't work nicely.  :)


--- Quote ---Another strange thing is that SetRegion always returns FALSE here, even with a simple rectangular region. Seems as wxGTK does not implement this function. (As the documentation says, it only works if the platform supports it.)
--- End quote ---
Isn't that what Window::shape_combine_region does?
It says: "Makes pixels in window outside shape_region be transparent, so that the window may be nonrectangular.". Strange... but whatever... if we got it to work, it's fine either way:)


--- Quote from: MortenMacFly on November 18, 2006, 10:58:21 am ---Thomas: Is this also something we had forgotten to test for the about dialog??? Should I start over again and loose another 3 hours? ;-)
With regards, Morten.
--- End quote ---
No, that's a different issue, I think. Why don't you just commit the version you had which worked (without all the double-buffering and stuff). We can always add the overlay stacking another control onto it later (less work).

MortenMacFly:

--- Quote from: thomas on November 18, 2006, 12:01:14 pm ---Why don't you just commit the version you had which worked (without all the double-buffering and stuff).

--- End quote ---
Well... erm... because did that already some days ago?! ;-) Anyway: The version that "worked" was nothing else than changing the XRC and pointing to the other image in the code. Everything else I tried didn't work. As soon as I used wxMemoryDC and consorts I ran into trouble.
With regards, Morten.

Der Meister:

--- Quote from: thomas on November 18, 2006, 12:01:14 pm ---Hmm... instead of destroying the clip region right after creating one, shouldn't it work to never create one, too? I'll try that approach (so, only use clip for Windows). Please complain if it doesn't work nicely.  :)

--- End quote ---
Just tested with revision 3234 and it seems to work as it should. :)

afb:
This splash window doesn't work OK in wxMac, and seems to be crashing under wx 2.8.0 so I'm going back to the wxFRAME_SHAPED on wxMac. It's pretty much the same, just set's a different window style and avoids the "copy from screen" hack (that crashes). http://www.algonet.se/~afb/wx/codeblocks-shapedsplash-new.patch

After patching:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version