1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| % --- Executes during object creation, after setting all properties.
function pushbutton14_CreateFcn(hObject, eventdata, handles)
% hObject handle to pushbutton14 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% --- Executes during object creation, after setting all properties.
function indic_validite_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton14 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
%handles.Frame=uicontrol('style','frame');
disp('je suis ici');
handles.NbDefauts = str2num(get(handles.text_nbdefauts,'String'));
if handles.NbDefauts > 0
set(handles.Frame,'BackGroundColor','red');
else
pause(2)
set(handles.Frame,'BackGroundColor','green');
end
guidata(hObject,handles) |