Changeset 613 for trunk/src/set_object.m
- Timestamp:
- Apr 19, 2013, 8:26:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_object.m
r606 r613 79 79 guidata(hObject, handles); 80 80 81 %% position 82 set(0,'Unit','points') 83 ScreenSize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right 84 Width=300;% fig width in points (1/72 inch) 85 Height=min(0.8*ScreenSize(4),500); 86 Left=ScreenSize(3)- Width-40; %right edge close to the right, with margin=40 87 Bottom=ScreenSize(4)-Height-40; %put fig at top right 88 set(handles.set_object,'Unit','points') 89 set(handles.set_object,'Position',[Left Bottom Width Height]) 90 81 91 %default 82 92 if ~exist('ZBounds','var') … … 155 165 %defaul settings 156 166 set(get(handles.set_object,'children'),'enable','on') 157 167 set(handles.PLOT,'enable','off') 158 168 % 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 uvmat163 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 end169 % 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 168 178 169 179 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.