realbasic-nug
[Top] [All Lists]

Re: Problem with Carbon Declare Library

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Problem with Carbon Declare Library
From: Harrie Westphal <harriew@frontiernet.net>
Date: Thu, 30 Jul 2009 10:06:53 -0500
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <C634CB43-2ACC-4E27-AF39-6E18DB60DA08@declareSub.com>
References: <36909BCC-936E-4A77-BF79-C99EDFE98DAC@frontiernet.net> <C634CB43-2ACC-4E27-AF39-6E18DB60DA08@declareSub.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com

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>


<Prev in Thread] Current Thread [Next in Thread>