Changeset 613 for trunk/src/set_object.m


Ignore:
Timestamp:
Apr 19, 2013, 8:26:15 AM (8 years ago)
Author:
sommeria
Message:

a few bugs repaired, GUI sizes optimized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r606 r613  
    7979guidata(hObject, handles);
    8080
     81%% position
     82set(0,'Unit','points')
     83ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right
     84Width=300;% fig width in points (1/72 inch)
     85Height=min(0.8*ScreenSize(4),500);
     86Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40
     87Bottom=ScreenSize(4)-Height-40; %put fig at top right
     88set(handles.set_object,'Unit','points')
     89set(handles.set_object,'Position',[Left Bottom Width Height])
     90
    8191%default
    8292if ~exist('ZBounds','var')
     
    155165%defaul settings
    156166set(get(handles.set_object,'children'),'enable','on')
    157    set(handles.PLOT,'enable','off')
     167set(handles.PLOT,'enable','off')
    158168% end
    159 huvmat=findobj(allchild(0),'tag','uvmat');
    160 UvData=get(huvmat,'UserData');
    161 pos_uvmat=get(huvmat,'Position');
    162 %position the set_object GUI with respect to uvmat
    163 if isfield(UvData,'SetObjectOrigin')
    164     pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2);
    165     pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4);
    166     set(hObject,'Position',pos_set_object)
    167 end
     169% huvmat=findobj(allchild(0),'tag','uvmat');
     170% UvData=get(huvmat,'UserData');
     171% pos_uvmat=get(huvmat,'Position');
     172% %position the set_object GUI with respect to uvmat
     173% if isfield(UvData,'SetObjectOrigin')
     174%     pos_set_object(1:2)=UvData.SetObjectOrigin + pos_uvmat(1:2);
     175%     pos_set_object(3:4)=UvData.SetObjectSize .* pos_uvmat(3:4);
     176%     set(hObject,'Position',pos_set_object)
     177% end
    168178
    169179%------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.