Re: De-checking Checkboxes
- From: "T.Wessely" <Tobias.Wessely@xxxxxxxxx>
- Date: 15 Sep 2006 04:44:34 -0700
Hi Dave!
You mean:
set(handles.checkbox2,'Value',0)
this de-selects the checkbox with name checkbox2.
Hope that is what you were looking for ?
Bye
Toby
Dave schrieb:
If in a GUI I have two checkboxes: cbox1 and cbox2. When I check one
checkbox how would I de-check the other checkbox?
I.e. to evaluate a check on the first box:
function cbox1_Callback(hObject,eventdata,handles)
if (get(hObject,'Value') == get(hObject,'Max'))
% cbox1 is checked
% How do I deselect cbox2 at this point so that the GUI will only
show one checkbox selected??
end
Thanks.
Dave
.
- Follow-Ups:
- Re: De-checking Checkboxes
- From: Dave
- Re: De-checking Checkboxes
- From: Fangjun Jiang
- Re: De-checking Checkboxes
- References:
- De-checking Checkboxes
- From: Dave
- De-checking Checkboxes
- Prev by Date: call to external application fails with R2006a
- Next by Date: Re: Save
- Previous by thread: De-checking Checkboxes
- Next by thread: Re: De-checking Checkboxes
- Index(es):