[futurebasic] RE: [FB] Re: Menu problems

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

From: Chris.Young@...
Date: Fri, 24 Sep 1999 14:37:12 -0500
DIM menuID%, itemID%, View%
itemID% = MENU (menuID)

doesn't the menuID need to be menuID%? I think FB^3 will see these as 
seperate variables.

Chris Young


On Friday, September 24, 1999 2:33 PM, stharris@... 
[SMTP:stharris@...] wrote:
> 
> 
> >
> > 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:
> 
> LOCAL FN doMenu
>    DIM menuID%, itemID%, View%          ' In this case, always 3 for 
the desired menu
>    menuID% = MENU(0)
>    itemID% = MENU (menuID)
> 
>    print % (10,50), itemID%                          ' Checking, 
always zero
>    TRON BREAK
> 
>    SELECT menuID%
>       CASE _mappleMenu:
>          'FN doAppleMenu (itemID)
>       CASE _mFile: FN doFileMenu (itemID%)
>       CASE _mEdit: PRINT "Inside EDIT"
>       CASE _mTrans
>          SELECT itemID%
>             CASE _iEnter: FN CheckEntry
>             CASE _iEdit
>                View% = _noFramed
>                FN CkEdit(View%,"Edit")
>                'CASE _iDelete                             'Use Edit
>                '--------------
>             CASE _iView:
>                View% = _statNoFramed
>                FN CkEdit(View%,"View")
>             CASE _iReconcile: FN Reconcile
>          END SELECT
> 
>       CASE _mAccounts
>          SELECT itemID%
>             CASE _iSelect :WINDOW CLOSE(_activeWnd):FN SelectUser
>             CASE _iEditAc :FN doAcctMenu(itemID)
>             CASE _iDelAc  :FN doAcctMenu(itemID)
>             CASE _iViewAct:                       'FN ViewAccounts
>          END SELECT
> 
>    END SELECT
>    MENU
> END FN
> 
> The menuID% is always 3 as it should be
> The itemID% can be 1, 2, 3 or 4. This worked without a problem in FB 
II
> 
> 
> 
> --
> To unsubscribe, send ANY message to 
<futurebasic-unsubscribe@...>
> 
>  << File: [FB] Re_ Menu problems.TXT >>