Get string of button in button group before GUI open
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Im trying to get the string of the button in a button group before the GUI opens. Anyone know how to do this? Thanks
0 Commenti
Risposte (1)
Image Analyst
il 25 Feb 2014
If using guide, delete the string in the string property edit field. If you want to do it in code, use set
set(handles.button1, 'String', '');
See if either of those work for you.
2 Commenti
Image Analyst
il 25 Feb 2014
I thought it said "delete" before. Now it says "get". If you want to get the string, you should use
buttonCaption = get(handles.button1, 'string');
I think this should work for buttons in a button group as well as individual buttons.
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!