How to change gui string?

2 ビュー (過去 30 日間)
faran
faran 2018 年 6 月 13 日
コメント済み: faran 2018 年 6 月 13 日
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?

採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 13 日
newlabel = get(handles.editbox1, 'String');
set(handles.checkbox1, 'String', newlabel);
  1 件のコメント
faran
faran 2018 年 6 月 13 日
Thank you so much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by