How to change gui string?

5 Ansichten (letzte 30 Tage)
faran
faran am 13 Jun. 2018
Kommentiert: faran am 13 Jun. 2018
Hi, IS it possible to change the string of checkbox or button in guide? I want the user to have this option to change the string anytime they like. Like that I put the string for a checkbox as 'case1' and If user want to change it do it by pressing a button to change it to for example to 'finalcase'.
I know that code "get(handles.checkbox1,'String')" will give the result of 'case1'. Is there anycode like get, to change the string of checkbox1?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Jun. 2018
newlabel = get(handles.editbox1, 'String');
set(handles.checkbox1, 'String', newlabel);

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by