Hi All,
The functions ShowMenuBar() doesnt seems to be working properly on
Mac OS 10.1 when used in a Carbon porject. When you call ShowMenuBar()
after calling HideMenuBar(), the resultant menu bar is just has volume
and date fields. It doesnt has Apple Menu at all. The menu is sort of
transparent. The functions work on Jaguar and Panther though.
The functions also work when used in an application build using XCode.
I have tried calling a number of functions after ShowMenuBar() (like
DrawMenuBar() etc.) but to no avail. I also tested it in a Mach-O
project but it doesnt works there either. Has anyone else faced such
problem.
Is it a bug in CW?
The code for testing cosisted of just two calls in the basic
application...
....
CBasicApp theApp;
HideMenuBar();
ShowMenuBar();
theApp.Run();
...
We used CW 8.3 and a Basic Carbon PowerPlant project for testing and
Mac OS 10.2.7 for development.
Any suggestions how to make them work?
TIA.
Regards,
Anand.
MW Ron - 09 Jan 2004 15:39 GMT
>Hi All,
> The functions ShowMenuBar() doesnt seems to be working properly on
[quoted text clipped - 21 lines]
>Mac OS 10.2.7 for development.
>Any suggestions how to make them work?
This sounds more like a bug with Apple... 10.0 and 10.1 were not as
robust as 10.2 was. What would be interesting is to see if the same
code works when developed with CW 7 or at least the carbon library for
that. If you want to test this on your own and don't have CW 7 or
can't access the Carbon lib for that I can try to help you.
Ron

Signature
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>
Eric Albert - 10 Jan 2004 06:22 GMT
> Hi All,
> The functions ShowMenuBar() doesnt seems to be working properly on
[quoted text clipped - 21 lines]
> Mac OS 10.2.7 for development.
> Any suggestions how to make them work?
I think this came up recently on Apple's carbon-dev mailing list and the
answer was that in 10.1.x you should call DrawMenuBar() at least once in
your application before hiding the menu bar for the first time. I think
that was fixed for 10.2.
Hope this helps,
Eric

Signature
Eric Albert ejalbert@cs.stanford.edu
http://rescomp.stanford.edu/~ejalbert/
Anand - 12 Jan 2004 14:16 GMT
Thanks a ton!
Calling DrawMenuBar()before HideMenuBar() works.
Couldnt test it using CW7 as suggested by Ron though.
Regards,
Anand.
> > Hi All,
> > The functions ShowMenuBar() doesnt seems to be working properly on
[quoted text clipped - 29 lines]
> Hope this helps,
> Eric