I have a button group of 2 radio buttons,edit text box and browse button
2 次查看(过去 30 天)
显示 更早的评论
I have a button group of 2 radio buttons,edit text box and browse button
When i press one radio button . the text box n browse button should be disabled
When i press another radio button . the text box n browse button should be enable
I have done it using set(handles.edit5,'enable','off') in callback function; for disabling txt box
but when i press another button it is not enabling set(handles.edit5,'enable','on'); in callback function
can anyone solve this problem
thanking u in advance
0 个评论
回答(2 个)
jeff wu
2012-5-8
编辑:Walter Roberson
2012-7-14
try this
uicontrol('style','pushbutton',...
some other properties
@set(handles.edit5,'enable','off'))
1 个评论
Walter Roberson
2012-7-14
If that is intended as the callback, it would have to be
'Callback', @(src, evt) set(handles.edit5, 'Enable', 'on')
Image Analyst
2012-7-14
Set a breakpoint on the set line. Does it ever execute that line? Are there any error messages, like there would be if you had misspelled a tag?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!