There's more to experience when you log in!
It looks like you are using the RIBBONLib to build your ribbon interface.
Can you make sure that you have used the most recent version from Github? You can download a zip file with the most recent files from here: mbLibrary on Github.
Use the Clone or Download button to download the zip file.
Once you have set your project to use the latest versions, recompile your own source files and link your MapBasic project.
If you are still getting errors, let us know and we can look into the specific issues.
nCtrlIdx = RBNCntxtMenuAddMenuItem(MenuId_MapperShortcut, "mapCntxtOpenDoqs", "Open Doq's For Boundary", "")If nCtrlIdx > 0 Then 'Create & Set the button tooltip Call RBNControlSetToolTipIdx(nCtrlIdx, PRGIGetApplicationName(), "Open Doq's For Boundary", "") 'Set the button icon Call RBNControlSetIconsIdx(nCtrlIdx, CONTROL_SIZE_SMALL, "" , pack://application:,,,/MapInfo.StyleResources;component/Images/Mapping/openTable_16x16.png) Call RBNControlSetLeftMarginIdx(nCtrlIdx, 0) 'Set Custom MapBasic Handle to the button Call RBNControlSetCustomMBXHandlerIdx(nCtrlIdx, "OPEN_DOQ_FOR_BND")End If
nNumCtrls = RBNCntxtMenuCount(MenuId_MapperShortcut)
For i = 2 To nNumCtrls Call RBNCntxtMenuRemoveControlItem(MenuId_MapperShortcut, RBN_ELEMENT_REMOVE_LAST)Next