Hey, I am MArc and I have a question about a GUI. have this GUI interface:
I want to achieve that when clicking both pink clickboxes I want to make all the red handles disappear. I tried with a function using the button 2, like this:
methods (Access = private) function Button2Pushed(app, event,handles) value1= get(handles.PRETESSATRECTECheckBox,'Value')==0; value2= get(handles.PRETESSATENCASTAMENTCheckBox,'Value')==0; value3= get(handles.PRETESSATPARABLICCheckBox,'Value')==1; value4= get(handles.ntramsCheckBox,'Value')==1; if value1 && value2 && value3&& value4 set(handles.LmEditField_3, 'Visible', 'off'); set(handles.readelaseccim2EditField_2, 'Visible', 'off'); set(handles.LNmEditField_2, 'Visible', 'off'); set(handles.Inrciam4EditField_2, 'Visible', 'off'); set(handles.AmpladadelaseccimEditField_2, 'Visible', 'off'); set(handles.ncordonsEditField_2, 'Visible', 'off'); set(handles.Sigma_uMPaEditField_2, 'Visible', 'off'); set(handles.Sigma_yMPaEditField_2, 'Visible', 'off'); set(handles.CargapermanentKNm2EditField, 'Visible', 'off'); set(handles.SobrecargavariableKNm2EditField, 'Visible', 'off'); set(handles.SobrecargavariableKNEditField, 'Visible', 'off'); set(handles.PuntualKNEditField, 'Visible', 'off'); set(handlesD_vainammEditField, 'Visible', 'off'); else set(handles.LmEditField_3, 'Visible', 'on'); end end end
But it does not work, it does nothing. I would like some advice, thank you
Best Answer