ADC Home > Reference Library > Technical Q&As > Legacy Documents > Mac OS 9 & Earlier >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
Q I need to have a CICN menu that has states of enabled, disabled,
enabled-hilited, enabled-checked-hilited, and enabled-checked. I've noticed
that these update slowly on my PowerPC 6100 66. What optimization can be done
to improve the drawing of the various states? A The trick is that you want to hop into ResEdit and create an 'ICON', and a corresponding cicn with the same ID number. The ID number must be between 257 and 511. Now, when you edit the cicn, you can go under the cicn menu and select "Icon Size" to resize it to be 16x16 (or whatever you like). Next, edit your MENU resource and select "Choose Icon" from the "MENU" menu. This lets you select your small cicn that you just created. The other way is to create a 'cicn', then open the MENU resource, and select "open using template" from the Resource menu. You open the resource using the MENU template. For the Icon# field of the menu item you want to append cicn to, simply enter the result of 'cicn' resource id - 256. Q What happens if I need to remove the Help menu and Applications menu from my menu list so they no longer appear in my applications menu?A From the Macintosh application interface standpoint, it's a bad idea. According to the Macintosh Human Interface guidelines, the menu bar should always contain the standard menus: the Apple menu, the File menu, the Edit menu, the Help menu, and the Application menu. Also, the Menu Manager will continually prevent this from working. Every time the Menu Manager notices that these menus are not there (e.g., at MenuSelect time, or at DrawMenuBar time) it will add them again. They must be there. Q Is it possible to make the Mac menu bar within my application larger than the standard 20 pixels (without patching any traps), and what sort of trouble might this cause for me?A Yes. Just use the same technique for hiding the menu bar in reverse. Part of hiding the menu bar is changing the low memory global MBarHeight to 1 or 0. To make the menu bar taller, just change that value to the height you want (in pixels). Note that this technique won't change the size of the text or the position of the title text. [May 01 1995] |
|