Changeset 144 for trunk/src/view_field.m


Ignore:
Timestamp:
Nov 30, 2010, 12:03:49 AM (13 years ago)
Author:
sommeria
Message:

connection between uvmat and get_field improved, cleaning of GUI get_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/view_field.m

    r116 r144  
    7272handles_mouse=handles;
    7373huvmat=findobj(allchild(0),'Name','uvmat');
    74 hhuvmat=guidata(huvmat);
    75 set(hhuvmat.list_object_2,'Visible','on')
    76 % handles_mouse.create=hhuvmat.create;
    77 handles_mouse.edit=hhuvmat.edit;
    78 pos_uvmat=get(huvmat,'Position');
    79 pos_view_field(1)=pos_uvmat(1)+pos_uvmat(3)/2;
    80 pos_view_field(2)=pos_uvmat(2)-pos_uvmat(3)/4;
    81 pos_view_field(3:4)=pos_uvmat(3:4);
    82 set(hObject,'Position',pos_view_field)
     74if ~isempty(huvmat)
     75    hhuvmat=guidata(huvmat);
     76    set(hhuvmat.list_object_2,'Visible','on')
     77    % handles_mouse.create=hhuvmat.create;
     78    handles_mouse.edit=hhuvmat.edit;
     79    pos_uvmat=get(huvmat,'Position');
     80    pos_view_field(1)=pos_uvmat(1)+pos_uvmat(3)/2;
     81    pos_view_field(2)=pos_uvmat(2)-pos_uvmat(3)/4;
     82    pos_view_field(3:4)=pos_uvmat(3:4);
     83    set(hObject,'Position',pos_view_field)
     84end
    8385
    8486%functions for the mouse and keyboard
Note: See TracChangeset for help on using the changeset viewer.