Changeset 432 for trunk/src/view_field.m
- Timestamp:
- May 25, 2012, 8:59:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/view_field.m
r429 r432 64 64 guidata(hObject, handles); 65 65 66 dircur=pwd; %current working directory67 dir_opening=dircur;68 69 % set the position of colorbar and ancillary GUIs:70 set(hObject,'Units','Normalized')71 handles_mouse=handles;72 huvmat=findobj(allchild(0),'Name','uvmat');73 if ~isempty(huvmat)74 hhuvmat=guidata(huvmat);75 handles_mouse.edit=hhuvmat.edit_object;76 pos_view_field=get(hObject,'Position');77 pos_uvmat=get(huvmat,'Position');78 pos_view_field(1)=pos_uvmat(1)+pos_uvmat(3)/2;79 pos_view_field(2)=pos_uvmat(2)-pos_uvmat(3)/4;80 % pos_view_field(3:4)=pos_uvmat(3:4);81 set(hObject,'Position',pos_view_field)82 end83 84 66 %functions for the mouse and keyboard 85 set(hObject,'KeyPressFcn',{'keyboard_callback',handles _mouse})%set keyboard action function86 set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles _mouse})%set mouse action functio67 set(hObject,'KeyPressFcn',{'keyboard_callback',handles})%set keyboard action function 68 set(hObject,'WindowButtonMotionFcn',{'mouse_motion',handles})%set mouse action functio 87 69 set(hObject,'WindowButtonDownFcn',{'mouse_down'})%set mouse click action function 88 set(hObject,'WindowButtonUpFcn',{'mouse_up',handles _mouse})70 set(hObject,'WindowButtonUpFcn',{'mouse_up',handles}) 89 71 set(hObject,'DeleteFcn',{@closefcn})% 90 72 set(hObject,'ResizeFcn',{@ResizeFcn,handles})% … … 103 85 write_plot_param(handles,PlotParamOut);% update the display of the plotting parameters 104 86 end 87 88 %put the GUI on the lower right of the sceen 89 pos_view_field=get(hObject,'Position'); 90 ScreenSize=get(0,'ScreenSize'); 91 pos_view_field(1)=ScreenSize(1)+ScreenSize(3)-pos_view_field(3); 92 pos_view_field(2)=ScreenSize(2); 93 set(hObject,'Position',pos_view_field) 105 94 106 95 %------------------------------------------------------------------------ … … 827 816 828 817 818 % 819 % 820 % % --- Executes when view_field is resized. 821 % function view_field_ResizeFcn(hObject, eventdata, handles) 822 % % hObject handle to view_field (see GCBO) 823 % % eventdata reserved - to be defined in a future version of MATLAB 824 % % handles structure with handles and user data (see GUIDATA)
Note: See TracChangeset
for help on using the changeset viewer.