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

a few bugs repaired, GUI sizes optimized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r591 r613  
    8989set(hObject,'WindowButtonDownFcn',{'mouse_alt_gui',handles}) % allows mouse action with right button (zoom for uicontrol display)
    9090
    91 %set the position of the interface
    92 if exist('pos','var')&& length(pos)>=4
    93     set(hObject,'Position',pos);
    94 end
     91%% position
     92set(0,'Unit','points')
     93ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right
     94Width=350;% fig width in points (1/72 inch)
     95Height=min(0.9*ScreenSize(4),700);
     96Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40
     97Bottom=ScreenSize(4)-Height-40; %put fig at top right
     98set(handles.geometry_calib,'Unit','points')
     99set(handles.geometry_calib,'Position',[Left Bottom Width Height])
     100
     101% %set the position of the interface
     102% if exist('pos','var')&& length(pos)>=4
     103%     set(hObject,'Position',pos);
     104% end
    95105
    96106%set menu of calibration options
Note: See TracChangeset for help on using the changeset viewer.