Changing enable field in GUI property inspector

2 次查看(过去 30 天)
How to i change the enable field in the property ispector?
I have a radio button that when pressed, i want it to disable a text box.
this is what i have
set(handles.ions_dir, 'Enable', false)
where ions_dir is the text box i am trying to disable
but it doesnt seem to work. anyone know whats the correct command? thanks

采纳的回答

Oleg Komarov
Oleg Komarov 2012-3-26
set(handles.ions_dir, 'Enable', 'off')
  8 个评论
Oleg Komarov
Oleg Komarov 2012-3-26
With that much info you gave us it would be impossible to guess what calls what.
I suggest to place a break point in the callback to see if it's called.
Andy
Andy 2012-3-26
i got it working, i changed the call back part in the property inspector, thanks!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by