Hi,
I have created a custom cursor named OSM-Cursor.cur it's stored within the Images folder in my dll, how do i use it in the RBNControlsetMICursorIdx() statement for use my application?
Sub Main
Dim nCtrlIdx As Integer
'// Adding the TAB named Property with the caption of Property
nCtrlIdx = RBNAddTab("TabProperty", "Property", "")
'// Adding the Group named Web Maps to TabProperty
nCtrlIdx = RBNTabAddGroup("GroupWebMaps", "Web Maps", "TabProperty")
If NOT nCtrlIdx > 0 Then
Exit Sub
End If
If nCtrlIdx > 0 Then
nCtrlIdx = RBNGroupAddControl("OSMButton", "Open Street Maps", "", ControlType_ToolButton, "TabProperty", "GroupWebMaps")
Call RBNControlSetToolTipIdx(nCtrlIdx, "View Open Street Maps", "View Open Street Maps at selected location on the map", "A mapper must be active to use this button")
Call RBNControlSetIconsIdx(nCtrlIdx, CONTROL_SIZE_LARGE, "", "pack://addinorigin:,,,/" + DLL_PATH + "MI_Ribbon_Icons.dll;component/Images/OpenStreetMap_32x32.png")
'Call RBNControlSetCustomMBXHandlerIdx(nCtrlIdx, "OpenStreetView")
Call RBNControlsetMICursorIdx(nCtrlIdx, MI_CURSOR_LRG_CROSSHAIR, "")
End If
End Sub
Regards
Andrew
------------------------------
Andrew Niebling
Queensland Rail Ltd
Brisbane QLD
------------------------------