[futurebasic] Re: Best way to remove menu items?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 1998 : Group Archive : Group : All Groups

From: Charlie Dickman <charlied@...>
Date: Mon, 16 Mar 1998 17:43:16 -0500
Pierre A. Zippi wrote...

>What is the recommended way to remove menu items?

Pierre,

I have found that when working with menus it is better to use the Toolbox
functions rather than FB's MENU statements - the Toolbox provides a bit
more functionality and is quite straightforward. The best write-up is in
Frank Turovich's book "Learning FutureBASIC II - The Toolbox". It is
available from Sentient Fruit. Check out

www.home.earthlink.net/~turovich/

The Toolbox provides functions and subroutines like...

FN GETMENUHANDLE, FN GETMENU, CALL DELETEMENU, CALL DISPOSEMENU, CALL
APPENDMENU functions to change menu item text, assign and delete command
key equivalents and much more.

If you have Inside Macintosh or the Think Reference check out the Menu Manager.

From what you wrote I would say that you might be able to get away with
GETMENUHANDLE, APPENDMENU and DELETEMENU.

Charlie Dickman
charlied@...