I'm not sure if this is of help. We had a custom menu that loaded with an MBX. I wrote some addition code but didn't have the source code for part of the original MBX. So I used the alter menu to insert the new menu items. It worked fine for me but others couldn't get the new code to load. After a couple of beers, it occurred to me that I needed to have the old code loaded before the new code. It seems that they are loaded in alpha order by title. So we had to change the titles. There wasn't an error message saying Can't find menu. My guess is that it is better to ignore the code than to halt everything.
I only message I have seen is a can't find the MBX to load. -----Original Message----- From: Bill Thoen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 2:50 PM To: MapInfo-L Subject: MI-L Alter Menu Item Questions Two quick questions: 1. In MapBasic, why doesn't Alter Menu Item ID 101 Text "New Command Name" throw an error if you have not defined a menu item with an ID of 101? 2. You can alter menu items from other mbx programs if the mbx program knows the menu item id and uses the "alter menu item id..." syntax. But can you add menu items to a custom mbx menu tree from an outside mbx program? (You can't define a custom menu with an id, it seems.) IF anyone knows the answers to either of these problems, I'd like some help on this. Thanks! - Bill Thoen --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16466 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 16467
