Customizing icons in Current Folder window

In the Current Folder window, one sees different types of files with different types of extensions (.mat, .m, etc...) assigned an icon.
Are these icons defined in MATLAB, or elsewhere, and is there a way to define one's own icon for new file types/extensions? For example, CUDA code is customarily given a .cu extension. Is it possible to make the Current Folder window display a certain kind of icon for files with that extension?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 1 月 12 日

0 投票

Not sure. What happens if you change the icon in the operating system for a particular extension? Does it show up in the current folder with the new icon?

4 件のコメント

Matt J
Matt J 2014 年 1 月 13 日
編集済み: Matt J 2014 年 1 月 13 日
I can't do that test, unfortunately. Windows 7 makes changing the association between extensions and icons really hard. However, one can see that .mat files have a different icon when viewed in Windows Explorer, as compared to the MATLAB Current Folder. So clearly, MATLAB has some icon selection mechanism of its own that overrides the operating system's, no?
Image Analyst
Image Analyst 2014 年 1 月 13 日
Yeah, you're right - I didn't notice that the icons are different. So you may be out of luck.
Matt J
Matt J 2014 年 1 月 13 日
編集済み: Matt J 2014 年 1 月 13 日
Why out of luck? If MATLAB can do it, then it might offer an easier way than going through Windows 7.
Image Analyst
Image Analyst 2014 年 1 月 13 日
Yeah, if they offered that in the preferences. My guess is that the icons they chose are hard coded into some resource and not available for you to change.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

タグ

質問済み:

2014 年 1 月 10 日

コメント済み:

2014 年 1 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by