Hi Peter
 
Yes I tried that and it worked fine.  I even used it within the actual proc to 
disable "itself" after it's done the biz and cleared the them. map.  Is this 
technique documented or hinted at anywhere?  If not, top marks for coming up 
with the idea
 
I still can't get a handle on why the official way of doing it doesn't work 
though.  Never mind - too busy to fret.
 
Cheers
 
Terry

________________________________

From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED] 
Sent: 03 January 2006 21:31
To: Terry McDonnell
Subject: RE: [MI-L] Internal Error 33012



Terry, 

I had a closer look at your problem and found a way around the problem. If you 
refer to the menu item using the procedure in stead of the ID, it will work.

I also found out the if the Disable the menu item in a procedure called when 
activating a menu item, you can refer to the ID.

My best guess is that MapInfo has some trouble with the ID so soon after the 
creation of the menu item, but I wouldn't know why.

So this works: 
*************************************** 
        Create Menu "&Census" as 
        '  "&Select Analysis Profile..." 
         ' ... 
          "&Clear Thematic Map" 
            ID CLEAR_THEM_MAP_ITEM_ID 
            HelpMsg "Clear any Thematic Map from display" 
            calling CLEAR_THEM_MAP 

        Alter Menu Bar Add "Census" 

        Alter Menu Item CLEAR_THEM_MAP disable 
*************************************** 

 

_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to