# Matlab toolstrip - part 5 (icons)

DevFeed: [Matlab toolstrip - part 5 (icons)](<https://devfeed.tech/articles/matlab-toolstrip-part-5-icons-22322.md>)

Original publisher: [Read original article](<https://undocumentedmatlab.com/articles/matlab-toolstrip-part-5-icons>)

Author: Yair Altman

Published: 2019-01-06T17:00:37Z

Content type: tutorial

Language: en

Sources: [Undocumented Matlab](<https://devfeed.tech/sources/undocumented-matlab.md>)

Topics: [MATLAB](<https://devfeed.tech/topics/matlab.md>), [Icons](<https://devfeed.tech/topics/icons.md>)

Tags: [buttons](<https://devfeed.tech/tags/buttons.md>), [component](<https://devfeed.tech/tags/component.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [custom](<https://devfeed.tech/tags/custom.md>), [file](<https://devfeed.tech/tags/file.md>), [gui](<https://devfeed.tech/tags/gui.md>), [gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature](<https://devfeed.tech/tags/gui-high-risk-of-breaking-in-future-versions-java-undocumented-feature.md>), [high-risk-of-breaking-in-future-versions](<https://devfeed.tech/tags/high-risk-of-breaking-in-future-versions.md>), [icons](<https://devfeed.tech/tags/icons.md>), [java](<https://devfeed.tech/tags/java.md>), [large](<https://devfeed.tech/tags/large.md>), [matlab](<https://devfeed.tech/tags/matlab.md>), [object](<https://devfeed.tech/tags/object.md>), [property](<https://devfeed.tech/tags/property.md>), [toolstrip](<https://devfeed.tech/tags/toolstrip.md>), [undocumented-feature](<https://devfeed.tech/tags/undocumented-feature.md>)

## AI overview

The excerpt describes several ways to set icons on MATLAB toolstrip controls. It recommends 16x16 icons for controls in columns with two or three components and 24x24 icons for a control spanning a single-component column. Icons may come from roughly 150 built-in choices, or from PNG/JPG files specified by filepath. The excerpt also describes loading PNG/JPG images from JAR files, including external JARs; GIF is not supported by the filepath constructor. It notes that built-in icons use the same image-loading mechanism and identifies MATLAB's toolstrip resources folder. The excerpt cuts off while introducing another constructor option, so it does not establish the complete set of methods.

## Source excerpt

Icons can be specified in various ways for toolstrip controls and the app window itself. The post Matlab toolstrip - part 5 (icons) appeared first on Undocumented Matlab. Related posts: Matlab toolstrip - part 3 (basic customization) Matlab toolstrips can be created and customized in a variety of ways. ... Matlab toolstrip - part 9 (popup figures) Custom popup figures can be attached to Matlab GUI toolstrip controls. ... Matlab toolstrip - part 2 (ToolGroup App) Matlab users can create custom Apps with toolstrips and docked figures. ... Matlab toolstrip - part 8 (galleries) Matlab toolstrips can contain customizable gallery panels of items. ...