How do I change the border style of a pushbutton with findjobj?
Mostra commenti meno recenti
I have a GUI I created and made various themes for, however, there is a problem. Whenever I change the pushbutton background color to anything other than the default grey, it changes the button style from an etched border with hover highlighting to a beveled border and no hover highlighting. While the hover highlighting is nice, it isn't a must-have. However, I hate the look of the beveled pushbutton and would like to get the etched border back. I have looked at the finjobj function from file exchange, but I cannot figure out how to use it, even after looking at the undocumented matlab page. Can anybody help me with this and maybe provide an example code that changes a pushbutton border style to etched?
Thank you!
Risposte (1)
Yair Altman
il 17 Ott 2017
1 voto
For a list of available border types, read the Swing documentation, and particularly the doc for EtchedBorder (note that you can customize the etch type and highlight/shadow colors).
1 Commento
Caleb Thomas
il 18 Ott 2017
Modificato: Caleb Thomas
il 18 Ott 2017
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!