필터 지우기
필터 지우기

I have a button group of 2 radio buttons,edit text box and browse button

조회 수: 1 (최근 30일)
Jagadeesh p
Jagadeesh p 2012년 5월 8일
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

답변 (2개)

jeff wu
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
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
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?

카테고리

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