Creating Graphical User Interfaces |
You can determine the current state of a check box from within its callback by querying the state of its Value
property, as illustrated in the following example:
function checkbox1_Callback(hObject, eventdata, handles) if (get(hObject,'Value') == get(hObject,'Max'))% then checkbox is checked-take approriate action
else% checkbox is not checked-take approriate action
end
Radio Buttons | Edit Text |
© 1994-2005 The MathWorks, Inc.