Thanks you folks for all your help.  The Run Menu Command is pretty much
what was required.  You learn something new (and essentially basic)every
day.
The user had two windows, a browser and a mapper.  When he chose from the
browser, he'd select Query>Find Selection each time to see on the mapper
where he was.  He wanted to move that command onto a floatable/dockable
button and save some clicks.
Many thanks to all who responded.
Jason

Here's the code I used for those interested (subst. in a new command from
the menu.def file and put any menu function on a button!)....
Include "mapbasic.def"
Include "menu.def"
Include "icons.def"
INCLUDE "AUTO_LIB.DEF"

Declare Sub Main
Declare Sub Action
Sub Main
    Create ButtonPad "Utility" As
        PushButton
        HelpMsg "Choose this button to display Selected objects"
        Calling Action
        Icon  MI_ICON_MISC_16
        Title "Utilities"
        Width 3
        Show 
End Sub

Sub Action
 Run Menu Command M_QUERY_FIND_SELECTION
End Sub

����������������������
Jason Adam
Computer Draftsperson
Monopros Limited
One William Morgan Drive
Toronto, ON    M4H 1N6
Tel: 416.423.5811
Fax: 416.423.9944
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to