Разработка графического пользовательского интерфейса в среде MATLAB. Бадриев И.Б - 104 стр.

UptoLike

104                                         Èíòåðôåéñ â ñðåäå MATLAB

      % handles structure with handles and user data (see GUIDATA)
      % Hints: get(hObject,'String') returns contents of edt_fcn as text
      % str2double(get(hObject,'String')) returns
      % contents of edt_fcn as a double


      % - Executes during object creation, after setting all properties.
      function edt_fcn_CreateFcn(hObject, eventdata, handles)
      % hObject handle to edt_fcn (see GCBO)
      % eventdata reserved - to be defined in a future version of MATLAB
      % handles empty - handles not created until after all CreateFcns called
      % Hint: edit controls usually have a white background on Windows.
      % See ISPC and COMPUTER.
      if ispc && isequal(get(hObject,'BackgroundColor'), ...
            get(0,'defaultUicontrolBackgroundColor'))
      set(hObject,'BackgroundColor','white');
      end


      function edt_begin_Callback(hObject, eventdata, handles)
      % hObject handle to edt_begin (see GCBO)
      % eventdata reserved - to be defined in a future version of MATLAB
      % handles structure with handles and user data (see GUIDATA)
      % Hints: get(hObject,'String') returns contents of edt_begin as text
      % str2double(get(hObject,'String')) returns
      % contents of edt_begin as a double
      % - Executes during object creation, after setting all properties.
      function edt_begin_CreateFcn(hObject, eventdata, handles)
      % hObject handle to edt_begin (see GCBO)
      % eventdata reserved - to be defined in a future version of MATLAB
      % handles empty - handles not created until after all CreateFcns called
      % Hint: edit controls usually have a white background on Windows.