[futurebasic] [FB] Re: Menu problems

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: pochas <pochas@...>
Date: Fri, 24 Sep 1999 15:49:30 -0400
> > 
> > Anders said: 

> > > I have a program with four menus on the menu bar: Apple, File, Edit and 
> > > Transactions. All menus return the proper event when clicked, but only 
> > > the File menu returns the line clicked. All other menus return zero no 
> > > matter which line is clicked. 
> > > 
> > > Could we see a little code? 

> Here it is: 

vLOCAL FN doMenu 
>   DIM menuID%, itemID%, View% ' In this case, always 3 for the desired menu 
>   menuID% = MENU(0) 
>   itemID% = MENU (menuID) 

Say no more.

Try
 
menuID% = MENU(_menuID)
itemID% = MENU(_itemID)

Menus and Dialogs use different setups to get events and id's.

Regards, Charles P.