Menus and AlertWindows aren’t paintin on Mac OS X 10.3.9 until they get repainted, by a timer, or by mousing over a button, etc.
Damn. I don’t actually have 10.3.9 to test on…
Does it sort it out if you do a repaint when the window’s resized, like this:
[code] void resizeViewToFitWindow()
{
HIRect r;
if (isSharedWindow)
{
HIViewGetFrame (viewRef, &r);
r.size.width = (float) component->getWidth();
r.size.height = (float) component->getHeight();
}
else
{
r.origin.x = 0;
r.origin.y = 0;
Rect w;
GetWindowBounds (windowRef, windowRegionToUse, &w);
r.size.width = (float) (w.right - w.left);
r.size.height = (float) (w.bottom - w.top);
}
HIViewSetFrame (viewRef, &r);
component->repaint();
}
[/code]
that fixed it, thanks
Ok, well probably best to only make it happen in 10.3, as there’s no point doing a double-repaint in a 10.4 build:
#if MACOS_10_3_OR_EARLIER
component->repaint();
#endif