On Sunday, Feb 9, 2003, at 00:52 America/Mexico_City, Michael D.
Crawford wrote:
> If I make a button with ZUIFactory::Make_ButtonPush, it looks OK under
> Mac OS 9, but when drawn in the Aqua appearance under OS X, the buttom
> couple of pixels is always cut off.
>
> It looks like some adjustment for the size needs to be done under the
> case of OS X.
>
> I'm happy to try to fix this, but I've never done any Appearance
> Manager programming. Maybe if someone could give me some tips on what
> I need to do, I can fix it.
I've only just switched to living in MacOS X, so this is bugging me on
a daily basis too. As I remember from the time I looked at this, the
problem is that the bounds we're passing to DrawThemeButton is the
clipped boundary of the button -- it's actually drawing outside those
bounds, and so we have to compensate for that by reducing the requested
bounds. It was worse in 10.1 when there was even more significant stuff
outside the bounds proper.
I don't have a proper solution right now -- we're already doing the
wrong thing by mucking with the bounds by 3 pixels on each edge when
its for a default button because the old appearance manager wouldn't
take the default ring into account regardless of the settings of the
ThemeButtonDrawInfo struct we pass in to GetThemeButtonContentBounds.
A+
--
Andrew Green mailto:ag...@em...
Electric Magic Co. Vox/Fax: +1 (408) 907 2101
|