Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4549 times and has 2 replies Next Thread
jonyeung
Newbie




Joined: May 3, 2018
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Icons for Toolbar Dropdown Items

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
----------------------------------------
[Edit 1 times, last edit by Puybaret at May 3, 2018, 5:50:32 PM]
[May 3, 2018, 2:58:51 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Icons for Toolbar Dropdown Items

You should specify the icon you want with a SMALL_ICON key in the .properties accompanying your plugin. See pluginAction class and ExportToSH3F plug-in for an example.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[May 4, 2018, 3:58:46 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
jonyeung
Newbie




Joined: May 3, 2018
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Icons for Toolbar Dropdown Items

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.
[May 7, 2018, 4:51:56 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved