Icons for Toolbar Dropdown Items

This topic has been viewed 7909 times and has 2 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
jonyeung
Posts: 2
Joined: Thu May 03, 2018 2:31 pm

Icons for Toolbar Dropdown Items

Post by jonyeung »

Hi

I would like to add icons beside each item in my plugin dropdown menu.

Does anyone know how to do this?

Please see the attached image for what I am referring to.
https://imgur.com/JNVKkIa
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Icons for Toolbar Dropdown Items

Post by Puybaret »

You should specify the icon you want with a [font=courier new]SMALL_ICON[/font] key in the [font=courier new].properties[/font] accompanying your plugin. See pluginAction class and ExportToSH3F plug-in for an example.
Emmanuel Puybaret, Sweet Home 3D creator
jonyeung
Posts: 2
Joined: Thu May 03, 2018 2:31 pm

Re: Icons for Toolbar Dropdown Items

Post by jonyeung »

Is it possible to use the putPropertyValue method to set the SMALL_ICON? I tried using a .properties file but despite giving it the correct filepath, I keep getting a MissingResourceException.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest