[futurebasic] Re: [FB] How to add a toolbox call?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2004 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Thu, 27 May 2004 19:54:38 +0100
On 27 May 2004, at 19:35, Paul Bruneau wrote:

> On May 27, 2004, at 12:09 PM, Alain Pastor wrote:
>> Paul Bruneau wrote:
>>> Hi again-
>>> Related to my quest for greater appearance/carbon popup menu  
>>> understanding, can anyone tell me how to access the toolbox call  
>>> GetControlPopupMenuID? It doesn't seem to be recognized by FB.
>>> http://developer.apple.com/documentation/Carbon/Reference/ 
>>> Control_Manager/controlman_ref/function_group_8.html#//apple_ref/c/ 
>>> func/GetControlPopupMenuID
>> add the following statement in your code:
>> toolbox fn GetControlPopupMenuID(ControlRef c) = short
>
> OK, I get an error that says "the following toolbox items are not 
> available on this computer. This program may crash if you continue. 
> GetControlPopupMenuID" There is a most ominous button that says 
> "Continue (Crash Possible)" at the bottom of the alert :)
> Maybe I need another header to be activated?

I've not checked but I was wondering if this does the same thing:

itemID = button(_myPopup, _FBgetControlMenuID)

:-b