[futurebasic] Re: [FB] Re: FB3 - No menu event

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

From: Joe Lewis Wilkins <PepeToo@...>
Date: Sat, 08 Jan 2000 20:58:47 -0800
Hi Stephen,

Take a look at the following which appears on page 316-17 of the eDoc Reference
and page 196-7 of the Printed Reference Manual:

To create or alter a menu: MENU menuID, itemID, state [,string$]

To enable or disable (dim) an existing menu:
ï Set the menuID  parameter to the ID number of an existing menu.
ï Set the itemID parameter to zero.
ï Set the state parameter to _enable or _disable.
ï Do not specify the string$ parameter (if you do, all the menuís items will go
away!)

I suspect the last line above is related to your problem. Otherwise, you've not
given us enough code to dope things out.

Joe Wilkins

Stephen Botting wrote:

> >Stephen:
> >I'm not sure about this, but it looks like you are using the same command key
> >combination for different menu items.  Just to see what happens, try changing
> >the command keys so that they are different for all the menu items.
> >This could
> >be the problem.
> >Mark
>
> Thanks for the suggestion, but still know go.
> just to point out what the code below does, it places a tick next to
> the name of the currently open window, only one case should be
> called.  The menu is being built correctly, it just selecting the
> "Points" item seems to NOT create a event.
>
> >
> > >
> > > menu 2,0,1,"Window"
> > > select WINDOW(_activeWnd)
> > >   case 1
> > >     menu 2,1,2,"Settings/1"
> > >     menu 2,2,1,"Bounds/2"
> > >     menu 2,3,1,"Points/3"
> > >   case 2
> > >     menu 2,1,1,"Settings/1"
> > >     menu 2,2,2,"Bounds/2"
> > >     menu 2,3,1,"Points/3"
> > >   case 3
> > >     menu 2,1,1,"Settings/1"
> > >     menu 2,2,1,"Bounds/2"
> > >     menu 2,3,2,"Points/3"
> > >   case else
> > >     menu 2,1,1,"Settings/1"
> > >     menu 2,2,1,"Bounds/2"
> > >     menu 2,3,1,"Points/3"
> > > end select
> > >
> > > The important thing to note is that the menu event wont even occur
> > > when selecting the "Points" menu.  I am using HANDLEEVENTS to trap it.
> > > When I put a beep on the first line of the menu handling FN it will
> > > not beep when I select the Points option, but will beep when I select
> > > any other item.
> > >
> > > Thanks,
> > >
> > > Stephen
> > >
> > > >
> > > >
> > > > > I sent this, but I don't think it got thru.
> > > > >
> > > > > I have a little problem, all the other menus work fine, It's just
> > > > > menu item that doesn't seem to cause a menu event.  All the other
> > > > > items in the menu do, but when i select this one item, nothing
> > > > > happens, it won't even go to the menu event handler.
> > > > >
> > > > > Any ideas?
> > > > > NB: I'm using OS 9.0
>
> _____________________________________________________
> This message was sent to you from cauldron@...
> Visit 43south Productions @ http://www.43south.co.nz
> 43south Productions - Software for MacOS Computers.
> PanZee - http://www.43south.co.nz/products/panzee
> GridZone - http://www.43south.co.nz/products/gridzone
> _____________________________________________________
>
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>