[futurebasic] Re: [FB] Re: [FB^3] Apple Menu Quandry

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2000 : Group Archive : Group : All Groups

From: Joe Lewis Wilkins <PepeToo@...>
Date: Fri, 27 Oct 2000 08:06:21 -0700
Hi Pierre,

Pierre Zippi wrote:

> Joe Lewis Wilkins wrote:
> >
> > Hi  Guys;  Here's a real good one!
> >
> > For the Apple Menu:
> >
> > In the LOCAL FN doMenu:
> > In one Program, menuID% = MENU (_menuID) produces a value of 254.
> > In a second Program, it produces a value of 127 (the one I thought it should
> > be)
>
> Joe
>
> I thought this was OS version dependent.
> I have always used the following code to accommodate older (pre-Sys 7) Macs.
> However, it will probably "fix" your problem.
>
>     CASE 255:                                     '-- About
>       item% = FN ALERT (1000, 0)                  'display ALRT resource ID
> 1000
>     CASE 127                                      'Apple Menu
>       SELECT itemID
>         CASE 1                                    'About Program
>           item% = FN ALERT (1000,0)               'display ALRT resource ID
> 1000
>         CASE 2                                    'Help if System < 700
>           FN HelpBuild
>       END SELECT

I wasn't having any problems with this until just NOW. The "problem" is that one
Program is generating a value of 254 for the menuID%, while another comes up with
a value of 127, and "apparently" the FB constant _AppleMenu "appears" to have a
value of 254.  I don't mind diddling around with things, but this appears to be
some sort of FB Problem - or at least an inconsistancy.  I don't see how the FB
FN MENU (_menuID) can generate two different values, unless - for some reason
they are using different versions of the FB II Runtime, and something was done
there that would change this.  I'm not much into the Runtimes, but Sherlock tells
me I only have one on this Mac, so I don't "think" that is the problem.  I
haven't been able to locate where _AppleMenu is defined, but IT APPEARS to have a
value of 254, which confuses the daylights out of me.

Any other observations?