Hi Dave,

When you create a MapBasic program for MapInfo Runtime, you have to realize
that there is no interface at the beginning. You ave great it all from
scratch.
This also means that you have to start by creating the MapperShortCurMenu.
You cannot add menu items to a non-existing menu:

     Create Menu "Kortl�gningsGenvej" ID 17 As
        "&Lagkontrol..."
          HelpMsg "Vis dialogboksen Lagkontrol"
          calling 801,
        "(-",
        "&Slet kosmetisk lag"
          HelpMsg "Fjern alle objekter fra det kosmetiske lag."
          calling 810,
        "(-",
        "Ret &vindue..."
          HelpMsg "Definer kortbredde, skala, st�rrelse og centrering."
          calling 805,
        "&Forrige vindue"
          HelpMsg "Returner til det foreg�ende vindue for et kort."
          calling 806,
        "Vis &hele laget..."
          HelpMsg "Vis et enkelt eller alle kortlag."
          calling 807

This creates the menu, after this you can add other menu items to this
menu. Don't mind the words shown here, they are in Danish ;-)

HTH,

Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013,  dir:+45 6313 5008,  fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
----- Videresendt af Peter M�ller/Kampsax - 01-03-2002 12:13 -----
                                                                                       
                                            
                    [EMAIL PROTECTED] (David                                           
                                            
                    Baker)                               Til:    MapInfo-L 
<[EMAIL PROTECTED]>                     
                    Sendt af:                            cc:                           
                                            
                    [EMAIL PROTECTED]        Vedr.:  MI-L Right-click menu 
in MI Runtime not MappShortcut?             
                    onsmag.com                                                         
                                            
                                                                                       
                                            
                                                                                       
                                            
                    01-03-2002 07:54                                                   
                                            
                    Besvar venligst til David                                          
                                            
                                                                                       
                                            
                                                                                       
                                            



If a map window is active in MI Pro, a right-click brings up the
"MapperShortcut" (ID 17) menu. No problems here - I can add menu options to

this menu easily.

However, the menu options I've added don't show up if I run my application
using MI Runtime! I reported this quite a while back, and have only just
come back to working on this problem. I've just realised that the right-
click menu for a map in MI Runtime looks nothing like the MapperShortcut
menu anyway. It appears to only have 4 menu elements - Undo, Cut, Copy &
Paste. This looks suspiciously to me like the Edit menu! However, I tried
doing a test for Runtime version & if so, changing my code from:
           Alter Menu ID 17 Add
to
           Alter Menu ID 2 Add
but this didn't work either.

Does anyone know the menu number for the map right-click menu under MI
Runtime? Failing that, anyone know where I can find it?

Thanks,

Dave



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.





_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to