Changeset 713 for trunk/src/msgbox_uvmat.m
- Timestamp:
- Feb 20, 2014, 3:49:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/msgbox_uvmat.m
r654 r713 62 62 set(handles.Cancel,'Position',[300 2 60 30]) 63 63 set(handles.Cancel,'FontSize',15) 64 64 %set(hObject,'WindowKeyPressFcn',{'@keyboard_callback',handles})%set keyboard action function 65 65 66 66 % Update handles structure … … 206 206 else 207 207 if strcmp(get(handles.edit_box,'Style'),'listbox') 208 208 varargout{1}=get(handles.edit_box,'Value'); 209 209 else 210 varargout{1}=get(handles.edit_box,'String');210 varargout{1}=get(handles.edit_box,'String'); 211 211 end 212 if isempty(varargout{1}) 212 if isempty(varargout{1}) 213 213 varargout{1}='Yes'; 214 214 end 215 215 end 216 if strcmp(get(handles.edit_box, 'Visible'), 'on') 217 varargout{2}=get(handles.edit_box,'String'); 218 end 216 219 % The figure can be deleted now 217 220 delete(handles.figure1); 218 221 end 222 219 223 % delete(handles.figure1); 220 224 … … 276 280 end 277 281 278 279 280 281 282 %'keyboard_callback:' function activated when a key is pressed on the keyboard 283 %----------------------------------- 284 function keyboard_callback(hObject,eventdata,handleshaxes) 285 cur_axes=get(hObject,'CurrentAxes');%current plotting axes of the figure with handle hObject 286 xx=double(get(hObject,'CurrentCharacter')) %get the keyboard character 287 288 289
Note: See TracChangeset
for help on using the changeset viewer.