Why my GUI code won't work?
Mostra commenti meno recenti
When i type this
get (handles.group,'selectedobject')
and select some object in figure that opens from gui editor, in command line i get this
UIControl (white) with properties:
Style: 'radiobutton'
String: 'white'
BackgroundColor: [0.9400 0.9400 0.9400]
Callback: @(hObject,eventdata)k2('white_Callback',hObject,eventdata,guidata(hObject))
Value: 1
Position: [-0.2000 2.0769 17.4000 1.7692]
Units: 'characters'
but i want only its string, so i tried:
get (handles.group,'selectedobject','string')
and it doesn't work.Instead i have to use
a=get (handles.group,'selectedobject')
get(a,'string')
My question is WHY?
Risposta accettata
Più risposte (1)
jack int
il 17 Mag 2017
0 voti
Categorie
Scopri di più su Interactive Control and Callbacks 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!