Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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

Antworten (2)

jeff wu
jeff wu am 8 Mai 2012
Bearbeitet: Walter Roberson am 14 Jul. 2012
try this
uicontrol('style','pushbutton',...
some other properties
@set(handles.edit5,'enable','off'))
  1 Kommentar
Walter Roberson
Walter Roberson am 14 Jul. 2012
If that is intended as the callback, it would have to be
'Callback', @(src, evt) set(handles.edit5, 'Enable', 'on')

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 14 Jul. 2012
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?

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by