Another thing, how can I put an image from the icon.def file as an icon to a button and not URI
Dim btnPunto, btnPuntoCoor as This
btnPunto = MICtrlCollAddStrStrInt(EielControlColPunt, "Punto", "Punto", ControlType_ToolButton) 'ControlTypes are defined in Enums.def
Call SetRbnToolBtnCtrlDrawMode(btnPunto, DM_CUSTOM_POINT) 'DrawModes are define din Icons.def
Call SetRbnToolBtnCtrlCallingHandler(btnPunto, "Punto2")
Call SetRbnToolBtnCtrlCursor(btnPunto, "3")
Call SetRbnToolBtnCtrlIsLarge (btnPunto, TRUE)
Call SetRbnToolBtnCtrlLargeIcon(btnPunto, New_Uri("pack://application:,,,/MapInfo.StyleResources;component/Images/Table/createPoints_32x32.png", 0))
?
------------------------------
Mayca González Pérez
COMUNIDAD. AUT. REG MURCIA
------------------------------
Original Message:
Sent: 04-23-2024 03:10
From: Peter Møller
Subject: icon menu
You can set the icon for the DropDown Button after creating it:
Call SetRbnDropDownCtrlSmallIcon(DropArchivo, New_Uri("pack://application:,,,/MapInfo.StyleResources;component/Images/Mapping/openFolder_16x16.png", 0))
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------