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.  How do I call a standard MapInfo Menu ID using the RIBBONLIb?

    Employee
    Posted 06-22-2017 08:32

    Here's another question I have seen a few times related to the RIBBONLib:

    I have managed to make my controls/buttons call custom procedures in my MapBasic application using the RBNControlSetCustomMBXHandlerIdx procedure from the RIBBONLib.

    But when I assign a standard menu ID to the control using the same procedure, nothing happens when I click the control in MapInfo Pro.

    How should I assign a standard MapInfo Pro menu ID to my control?



  • 2.  RE: How do I call a standard MapInfo Menu ID using the RIBBONLIb?

    Employee
    Posted 06-22-2017 04:34

    The procedure RBNControlSetCustomMBXHandlerIdx can only be used to assign custom procedures to the controls.

    To assign a standard MapInfo Pro menu ID (also known as a CommandID) to your control, you should the RBNControlSetCmdIDIdx procedure:

    Call RBNControlSetCmdIDIdx(nCtrlIdx, M_FILE_OPEN)