Changeset 309 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Nov 30, 2011, 11:09:12 PM (12 years ago)
Author:
sommeria
Message:

many bugs corrected, cleaning of civ.m, resize of the GUI civ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r302 r309  
    4040set(hcurrentfig,'Units','normalized')
    4141hhcurrentfig=guidata(hcurrentfig);
     42if isfield(hhcurrentfig,'CheckZoom')
    4243test_zoom=get(hhcurrentfig.CheckZoom,'Value');%test for zoom action, first priority
     44else
     45    test_zoom=0;
     46end
    4347test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');%test for ruler  action, second priority;
    4448test_edit=get(hhuvmat.edit_object,'Value');%test for object editing, third priority
     
    6064    end
    6165end
    62 xdisplay=[];%default
    63 ydisplay=[];%default
    6466AxeData=[];%default
    6567
     
    7678%% loop on all the objects in the current figure (selected by the last mouse click)
    7779output_str='';
     80state_visible=get(hchildren,'Visible');
     81check_visible=strcmp('on',state_visible);%=1 if visible='on', =0 otherwise
     82hchildren=hchildren(find(check_visible)); %kkep only the visible children
    7883for ichild=1:length(hchildren)
    79     hchild=hchildren(ichild); %handle of the current object
     84    hchild=hchildren(ichild); %handle of the current obj
    8085    obj_pos=get(hchild,'Position');%position of the object
    8186    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);
     
    119124                if isequal(get(hObject,'SelectionType'),'alt')  && isequal(get(hchild,'Visible'),'on') && ~isequal(get(hchild,'tag'),'frame_object')&&...
    120125                        ~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
    122128                        msg_pos(1:2)=GUI_pos(1:2)+obj_pos(1:2).*GUI_pos(3:4);
    123129                        output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],'',get(hchild,'String'),msg_pos);
Note: See TracChangeset for help on using the changeset viewer.