where are MI icons stored?

27 views
Skip to first unread message

Sergi Gàmiz Ribelles

unread,
Jan 15, 2022, 5:10:21 AM1/15/22
to MapInfo-L
Can MI icons be extracted from any DLL or RES file? thank you.
SGR

Peter Horsbøll Møller

unread,
Jan 15, 2022, 9:56:30 AM1/15/22
to mapi...@googlegroups.com

Hi

 

There er stored as resources typically inside assemblies.

If you want to use these from a MapBasic application, you can refer to them directly.

 

With MapBasic v2021, we added a new .def that lists the icons with a constant which makes it easier to use these.

Check out the file RibbonControls.def where you can find defines like these:

 

Define MI_IMG_APP_CLOSEALL_16     "pack://application:,,,/MapInfo.StyleResources;component/Images/Application/closeAll_16x16.png"

Define MI_IMG_APP_CLOSEALL_32     "pack://application:,,,/MapInfo.StyleResources;component/Images/Application/closeAll_32x32.png"

Define MI_IMG_APP_CLOSEDBMS_16    "pack://application:,,,/MapInfo.StyleResources;component/Images/Application/closeDbms_16x16.png"

 

You should be able to use this def file in earlier versions of MapBasic too just be aware not to use icons added in a newer version than the one you may be using

 

Peter Horsbøll Møller

www.precisely.com

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: mapi...@googlegroups.com <mapi...@googlegroups.com> On Behalf Of Sergi Gàmiz Ribelles
Sent: 15. januar 2022 11:10
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] where are MI icons stored?

 

This message originated Externally. Use proper judgement and caution with attachments, links, or responses.

 

Can MI icons be extracted from any DLL or RES file? thank you.

SGR

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/4ca206dd-f1fe-4b1c-accf-6c3965f2ab77n%40googlegroups.com.

Sergi Gàmiz Ribelles

unread,
Jan 16, 2022, 4:17:58 AM1/16/22
to MapInfo-L
Thank you Peter. I'm using MIpro 15.0. As i am making my own icons for my applications I thought I'd take advantage of some MI icons and modify them for my applications.
I am using an icon editor that is capable of extracting and assembling icons into DLLs.
Regards
SGR
El dia dissabte, 15 de gener de 2022 a les 15:56:30 UTC+1, Peter Horsbøll Møller va escriure:
Reply all
Reply to author
Forward
0 new messages