Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | 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: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2359 times and has 1 reply Next Thread
sputnik3000
Newbie



Canada
Joined: Aug 4, 2016
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
How to create a button group in the toolbar?

I want to have a button group on the toolbar which can have one option be selected by the user between options A, B, C, and D. The toolbar button for the option would then be highlighted to show the user that this is the option he/she has chosen. This would be analogous to the radio buttons feature for Java Swing.

Ideally, it would be like the selection between the mouse controls in this section of the toolbar. I'm wondering if this is possible with only the plugin (no modifying the source code).


[Aug 8, 2016 6:08:49 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 5841
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to create a button group in the toolbar?

The existing buttons you mentioned are instances of JToggleButton, but you can also use JRadioButton instances gathered with Group class.
It's feasible with a plugin but I wouldn't recommend it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Aug 9, 2016 10:03:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [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-2017 eTeks - All rights reserved