MapInfo Pro Developers User Group

Welcome to the MapInfo Pro Developers community!  We are a group dedicated to the discussion and understanding of MapBasic and .Net MapInfoPro AddIn development. Bring your questions and ideas here. This group includes several members of the Pro development team from around the world.

Please feel free to start a discussion in the discussion tab or join in a conversation.

Product Information  Ideas Portal  MapInfo Community Downloads

Discussions

Members

Resources

Events

 View Only
  • 1.  Run command for LayoutCommandID menus

    Posted 04-27-2018 14:44

    I'm trying to issue a number of 'run menu command ' calls via map basic 16.03, but it doesn't seem to activate those affecting the Layout such as 5011, 5021 and 5022. This should set the 'select', 'zoom_in/out' functions for a layout window.

    I can create a button for these, but if the map window is active then these are disabled, so you can't zoom in without first deactivating the map window.

    I tried creating dummy buttons that then deactivate the map window and call the run command ID of those buttons nothing happens.

    Any ideas how I can get these buttons to activate. I don't want the map scale changing just the ability to zoom the whole layout in when the map is active.

    Cheers

     



  • 2.  RE: Run command for LayoutCommandID menus

    Posted 04-27-2018 11:18

    Sorry I forgot the ID of the buttons assigned are not the internal MI ID's used in the ribbon. Needed to call the ARRAYFindValueString() from within the Ribbonlib.

    But still interested if the standard run menu command for LayoutCommandID's will be added in the future?

     



  • 3.  RE: Run command for LayoutCommandID menus

    Posted 04-30-2018 09:33

    Hi David,

    All Layout command IDs will be exposed in version 17.0 and can be used with Run Menu Command. There is a change in the numbering however, they will all have values in the 2900's so look at the Layout Designer menu section in MENU.DEF, or the LayoutCommandID enumeration in the the Integrated Mapping Reference from version 17.0.

    -Michele Buselli