MATLAB Answers

How to change uicontrol properties in a callback function of a different uicontrol?

8 ビュー (過去 30 日間)
Adriano
Adriano 2017 年 11 月 28 日
編集済み: Adriano 2017 年 11 月 28 日
Hi everyone! I'm developing a GUI in which I would like to make invisible a popupmenu when every value is choosed by another popupmenu. The code is the follow:
popupmenu = uicontrol('style','popupmenu','string',{'A';'B'},'Callback',@pushbutton3_callback);
rule_1a = uicontrol('style','popupmenu','string',{'C';'D'},'Callback',@pushbutton_callback);
function pushbutton3_callback(hObject,event)
set(rule_1a,'Visible','off')
end
It doesn't work. How Can I do that? Many thanks!
Regards,
Adriano

  0 件のコメント

サインイン to comment.

回答 (0 件)

サインイン してこの質問に回答します。


Translated by