Carolyn,

The numbers like 1701 refers to internal MapInfo procedures, like zoom in, zoom 
out and select. You can find the number - in some caases - several places in 
the menu file. This is what I did to figure out which number to use when adding 
the selector tool to the rightclick menu.

If you want to add a procedure of your own to a menu, you have to do this in 
your application. This means that you in your Main procedure of the application 
should have some code specifying which menu to add a new menu item to. Like 
this:

        '***Add menuitem til tableshortcut...
        Alter Menu ID 18
                Add
                        "(-",
                        "Vis i kortet"
                                HelpMsg "Viser udvalgt adresse i kortet."
                                Calling FindFinn

This sample was taken from an application that adds a new menu item to the 
Table shortcut menu. This menu item call my procedure FindFinn when the user 
click on the item.

HTH,

Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

COWI har fået ny hjemmeside. Ydelserne GIS og IT, kort, kortlægning, 3D 
visualisering og arealforvaltning ligger under SAMFUND. Se mere her : 
www.cowi.dk

COWI has changed its homepage. Our services within cadastre and 
landadministration, geodataproducts, mapping and GIS can be seen under SOCIETY. 
See our services here: www.cowi.com


-----Original Message-----
From: Carolyn Bergin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 28, 2005 4:09 AM
To: [email protected]
Subject: MI-L More menu help


 
Hi all,

Ive been following the hotkey / menu discussions pretty closely and ive been 
playing around with it a bit.  I just have one question...for now...When the 
code says "calling 1701" what does the 1701 refer to?  Or whatever number it 
is, is it refering to the coding that will tell MI what to do?  So if I have 
written an MBX and want to add that to my customised menu would I put calling 
myMBX?  And if this is the case where do I need to store the .MBX for MI to 
read it?

Thanks so much for your help

Carolyn

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To 
unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18047




---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 18048

Reply via email to