| Comments Now Optional 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) Comment lines are now 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. |