There are a couple of approaches you could take, depending upon what you're trying to do:
1. Make the user unable to open or close the table (if it's a table, that is) with "set table" statements. 2. Check for the file/table's openness in a system handler (probably WinfocusChangedHandler) and enable/disable the menu item based on that. 3. Forget about disabling the menu item. If the user selects the menu item when the file/table is closed, silently reopen it. HTH Spencer -----Original Message----- From: Doug Pease [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 12:11 AM To: [EMAIL PROTECTED] Subject: MI-L disabling a submenu item I am trying to figure out how to disable a submenu item dependent on whether a specific file is open, in a mapbasic application, but am unable to. The menu is loaded at MI startup and remains loaded but the particular file could be opened or closed at any time. Any help would be greatly appreciated. TIA Doug Pease GIS Officer Livingstone Shire Council PO Box 600 Yeppoon 4703 Qld Australia Ph 07 49399957 Fax 07 49393290 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11896
