[wx-dev] wxAUI Hint Window Issues and wxMac Status

Alex Bligh alex at alex.org.uk
Thu Aug 17 04:20:28 PDT 2006


Brian,

> Considering the fallback method is currently broken on all platforms and
> according to you, possibly extremely hard to fix if not impossible
> without a lot of flicker issues I'm sure, it would make sense to change
> the behavior to ultimately falling back on venetian (without fade)
> cutting the need for a wxAUI_MGR_DISABLE_VENETIAN_BLINDS flag, but
> keeping the fade option in there. I would vote +1 for that. I was
> originally opposed to the venetian style hints because of the fade
> effect. Despite all these issues with venetian on Mac (not related to
> the fade effect), I never really liked the fade effect on MSW either.

That's essentially what Ben was proposing, except (AIUI) by using
an enum for the type of effect, and falling back to venetian blinds
if the transparency didn't work.

> I actually found that this is caused by a bug in wxFrame when using a
> shaped frame on Mac. It looks like they don't honor the actual window
> dimensions set in wxWindow where they do on MSW and GTK:
> https://sourceforge.net/tracker/index.php?func=detail&aid=1540735&group_i
> d=9863&atid=109863
>
> I made appropriate changes to wxPseudoTransparentFrame to take this bug
> into account already. It draws correctly on Mac despite this bug, though
> I was forced to basically recalculate the region with every size change,
> so I figured it would be slower. I found out that on Mac and MSW, this
> new code actually seems to perform much faster on average (possibly just
> because it's not calculating regions twice as big?). My changes are
> included in the patch below along with other fixes.

Perhaps we should just do this then. I will take a look at the patch.

> The changed color, paint fix, and Mac shaped frame workaround code is
> included in this patch:
> https://sourceforge.net/tracker/index.php?func=detail&aid=1541641&group_i
> d=9863&atid=309863

Thanks. I'll take a look at that too.

A bit snowed under with other things today, so might not be for a bit...

Alex




More information about the wx-dev mailing list