Hello,
I use MapInfo 19 and in MapBasic I try to add an icon to a button following to your example:
Call SetRbnBtnCtrlLargeIcon(button1, New_Uri("pack://application:,,,/MapInfo.StyleResources;component/Images/Mapping/openTable_32x32.png", 0))
But when I open the mbx-file in MapInfo I get an error:
MapInfo
---------------------------
(modulemain.mb:48) Unhandled exception in external method (UriFormatException): Invalid URI: Invalid port specified.
It means that the the path is not found. How can I solve this problem?
And one more question: is there another way to add an icon like it was in old version where it was possible to write just
the following:
Icon MI_ICON_SEARCH_RECT
in the definition of ToolButton or PushButton ?
Thank you
------------------------------
Evgeny Kleiman
Knowledge Community Shared Account
------------------------------