Home > m > gui > ltpdv > scratch.m

scratch

PURPOSE ^

SCRATCH M-file for scratch.fig

SYNOPSIS ^

function varargout = scratch(varargin)

DESCRIPTION ^

 SCRATCH M-file for scratch.fig
      SCRATCH, by itself, creates a new SCRATCH or raises the existing
      singleton*.

      H = SCRATCH returns the handle to a new SCRATCH or the handle to
      the existing singleton*.

      SCRATCH('CALLBACK',hObject,eventData,handles,...) calls the local
      function named CALLBACK in SCRATCH.M with the given input arguments.

      SCRATCH('Property','Value',...) creates a new SCRATCH or raises the
      existing singleton*.  Starting from the left, property value pairs are
      applied to the GUI before scratch_OpeningFcn gets called.  An
      unrecognized property name or invalid value makes property application
      stop.  All inputs are passed to scratch_OpeningFcn via varargin.

      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
      instance to run (singleton)".

 See also: GUIDE, GUIDATA, GUIHANDLES

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function varargout = scratch(varargin)
0002 % SCRATCH M-file for scratch.fig
0003 %      SCRATCH, by itself, creates a new SCRATCH or raises the existing
0004 %      singleton*.
0005 %
0006 %      H = SCRATCH returns the handle to a new SCRATCH or the handle to
0007 %      the existing singleton*.
0008 %
0009 %      SCRATCH('CALLBACK',hObject,eventData,handles,...) calls the local
0010 %      function named CALLBACK in SCRATCH.M with the given input arguments.
0011 %
0012 %      SCRATCH('Property','Value',...) creates a new SCRATCH or raises the
0013 %      existing singleton*.  Starting from the left, property value pairs are
0014 %      applied to the GUI before scratch_OpeningFcn gets called.  An
0015 %      unrecognized property name or invalid value makes property application
0016 %      stop.  All inputs are passed to scratch_OpeningFcn via varargin.
0017 %
0018 %      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
0019 %      instance to run (singleton)".
0020 %
0021 % See also: GUIDE, GUIDATA, GUIHANDLES
0022 
0023 % Edit the above text to modify the response to help scratch
0024 
0025 % Last Modified by GUIDE v2.5 26-Aug-2008 16:10:20
0026 
0027 % Begin initialization code - DO NOT EDIT
0028 gui_Singleton = 1;
0029 gui_State = struct('gui_Name',       mfilename, ...
0030                    'gui_Singleton',  gui_Singleton, ...
0031                    'gui_OpeningFcn', @scratch_OpeningFcn, ...
0032                    'gui_OutputFcn',  @scratch_OutputFcn, ...
0033                    'gui_LayoutFcn',  [] , ...
0034                    'gui_Callback',   []);
0035 if nargin && ischar(varargin{1})
0036     gui_State.gui_Callback = str2func(varargin{1});
0037 end
0038 
0039 if nargout
0040     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0041 else
0042     gui_mainfcn(gui_State, varargin{:});
0043 end
0044 % End initialization code - DO NOT EDIT
0045 
0046 
0047 % --- Executes just before scratch is made visible.
0048 function scratch_OpeningFcn(hObject, eventdata, handles, varargin)
0049 % This function has no output args, see OutputFcn.
0050 % hObject    handle to figure
0051 % eventdata  reserved - to be defined in a future version of MATLAB
0052 % handles    structure with handles and user data (see GUIDATA)
0053 % varargin   command line arguments to scratch (see VARARGIN)
0054 
0055 % Choose default command line output for scratch
0056 handles.output = hObject;
0057 
0058 % Update handles structure
0059 guidata(hObject, handles);
0060 
0061 % UIWAIT makes scratch wait for user response (see UIRESUME)
0062 % uiwait(handles.figure1);
0063 
0064 
0065 % --- Outputs from this function are returned to the command line.
0066 function varargout = scratch_OutputFcn(hObject, eventdata, handles) 
0067 % varargout  cell array for returning output args (see VARARGOUT);
0068 % hObject    handle to figure
0069 % eventdata  reserved - to be defined in a future version of MATLAB
0070 % handles    structure with handles and user data (see GUIDATA)
0071 
0072 % Get default command line output from handles structure
0073 varargout{1} = handles.output;
0074 
0075 
0076 % --- Executes on selection change in popupmenu1.
0077 function popupmenu1_Callback(hObject, eventdata, handles)
0078 % hObject    handle to popupmenu1 (see GCBO)
0079 % eventdata  reserved - to be defined in a future version of MATLAB
0080 % handles    structure with handles and user data (see GUIDATA)
0081 
0082 % Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
0083 %        contents{get(hObject,'Value')} returns selected item from popupmenu1
0084 
0085 
0086 % --- Executes during object creation, after setting all properties.
0087 function popupmenu1_CreateFcn(hObject, eventdata, handles)
0088 % hObject    handle to popupmenu1 (see GCBO)
0089 % eventdata  reserved - to be defined in a future version of MATLAB
0090 % handles    empty - handles not created until after all CreateFcns called
0091 
0092 % Hint: popupmenu controls usually have a white background on Windows.
0093 %       See ISPC and COMPUTER.
0094 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
0095     set(hObject,'BackgroundColor','white');
0096 end
0097 
0098 
0099 % --- Executes on selection change in popupmenu2.
0100 function popupmenu2_Callback(hObject, eventdata, handles)
0101 % hObject    handle to popupmenu2 (see GCBO)
0102 % eventdata  reserved - to be defined in a future version of MATLAB
0103 % handles    structure with handles and user data (see GUIDATA)
0104 
0105 % Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array
0106 %        contents{get(hObject,'Value')} returns selected item from popupmenu2
0107 
0108 
0109 % --- Executes during object creation, after setting all properties.
0110 function popupmenu2_CreateFcn(hObject, eventdata, handles)
0111 % hObject    handle to popupmenu2 (see GCBO)
0112 % eventdata  reserved - to be defined in a future version of MATLAB
0113 % handles    empty - handles not created until after all CreateFcns called
0114 
0115 % Hint: popupmenu controls usually have a white background on Windows.
0116 %       See ISPC and COMPUTER.
0117 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
0118     set(hObject,'BackgroundColor','white');
0119 end
0120 
0121

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003