On Jul 29, 2009, at 9:46 PM, Charles Yeomans wrote:
I'd be surprised if the code below ever worked, because
ChangeMenuAttributes is declared incorrectly. Try this declaration
and see if it solves your problem.
Declare Function ChangeMenuItemAttributes Lib kCarbonLib (menu
As Integer, item As UInt16, setAttrs As Integer, clearAttrs As
Integer) As Integer
Thanks Charles. I figured that if any one answered my question, it
would be you. I now get return codes of zero each time the above
function is called. However, I guess I don't understand what the
dynamic menu feature is trying to show because all three of the menu
items still appear when you pull down the File menu:
Dynamic Menu 1 Cmd-1
Dynamic Menu 2 Cmd-Shift-1
Dynamic Menu 3 Cmd-Option-1
I thought that only one of the items would appear, depending on what
combination of keys were depressed. Anyhow, at least the three message
boxes no longer pop up as the program launches.
=== A Mac addict in Tennessee ===
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|