Changeset 309 for trunk/src/mouse_down.m
- Timestamp:
- Nov 30, 2011, 11:09:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r302 r309 40 40 set(hcurrentfig,'Units','normalized') 41 41 hhcurrentfig=guidata(hcurrentfig); 42 if isfield(hhcurrentfig,'CheckZoom') 42 43 test_zoom=get(hhcurrentfig.CheckZoom,'Value');%test for zoom action, first priority 44 else 45 test_zoom=0; 46 end 43 47 test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');%test for ruler action, second priority; 44 48 test_edit=get(hhuvmat.edit_object,'Value');%test for object editing, third priority … … 60 64 end 61 65 end 62 xdisplay=[];%default63 ydisplay=[];%default64 66 AxeData=[];%default 65 67 … … 76 78 %% loop on all the objects in the current figure (selected by the last mouse click) 77 79 output_str=''; 80 state_visible=get(hchildren,'Visible'); 81 check_visible=strcmp('on',state_visible);%=1 if visible='on', =0 otherwise 82 hchildren=hchildren(find(check_visible)); %kkep only the visible children 78 83 for ichild=1:length(hchildren) 79 hchild=hchildren(ichild); %handle of the current obj ect84 hchild=hchildren(ichild); %handle of the current obj 80 85 obj_pos=get(hchild,'Position');%position of the object 81 86 if xy_fig(1) >=obj_pos(1) & xy_fig(2) >= obj_pos(2)& xy_fig(1) <=obj_pos(1)+obj_pos(3) & xy_fig(2) <= obj_pos(2)+obj_pos(4); … … 119 124 if isequal(get(hObject,'SelectionType'),'alt') && isequal(get(hchild,'Visible'),'on') && ~isequal(get(hchild,'tag'),'frame_object')&&... 120 125 ~isequal(get(hchild,'tag'),'ListObject') 121 if strcmp(get(hchild,'Visible'),'on') 126 % if strcmp(get(hchild,'Visible'),'on') 127 if ~strcmp(get(hchild,'Style'),'frame')%do not visualisaze frames 122 128 msg_pos(1:2)=GUI_pos(1:2)+obj_pos(1:2).*GUI_pos(3:4); 123 129 output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],'',get(hchild,'String'),msg_pos);
Note: See TracChangeset
for help on using the changeset viewer.