MATLAB Release Notes |
Creating Graphical User Interfaces (GUIDE) Features
MATLAB 7.0.1 adds the following new features and enhancements for creating graphical user interfaces.
Optional Comments for Newly Generated Callback Functions
In prior releases, GUIDE automatically generated comment lines for each callback that you added to an existing GUI M-file. For example:
% --- Executes during object deletion, before destroying properties. function figure1_DeleteFcn(hObject, eventdata, handles) % hObject handle to figure1 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
In version 7.0.1, comment lines are optional for most callbacks. If you want the comments to be generated automatically when you add a callback, check the new preference Add comments for newly generated callback functions on the GUIDE panel of the Preferences dialog box. The factory default is checked.
If this preference is unchecked, GUIDE includes the comment lines only for callbacks that are automatically included for the GUIDE template you chose. No comments are included for any other callbacks that are added to the M-file.
External Interfaces/API Features | Platform Limitations |
© 1994-2005 The MathWorks, Inc.