Yes, that’s possible.
You basically add a button control as if you were adding a button that would call your custom procedure.
But instead of calling a MBX handler it will call a Command ID:
nCtrlIDx = RBNGroupAddButton ("btnSelector", "Select", "", sTabName, sGroupName)
If nCtrlIDx > 0 Then
Call RBNControlSetToolTipIdx(nCtrlIDx, "Selector", "Select features", "")
Call RBNControlSetIconsIdx(nCtrlIDx, CONTROL_SIZE_LARGE, "", MI_IMG_MAP_SELECT_32)
Call RBNControlSetCmdIDIdx (nCtrlIDx, M_TOOLS_SELECTOR)
End If
Where MI_IMG_MAP_SELECT_32 is a define from the MI_ICONS_X64.def:
Define MI_IMG_MAP_MARQUEESELECT_32 "pack://application:,,,/MapInfo.StyleResources;component/Images/Mapping/marqueeSelect_32x32.png"
Peter Horsbøll Møller
Pitney Bowes
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, that’s possible.
...