Changeset 244 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Apr 20, 2011, 12:51:29 PM (13 years ago)
Author:
sommeria
Message:

various bug repair, improved display of msgbox_uvmat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r238 r244  
    3636    hcurrentfig=hObject;%usual plot
    3737end
     38    set(hcurrentfig,'Units','pixels')
     39    currentfig_pos=get(hcurrentfig,'Position');%position of the GUI series (in pixels)
     40    set(hcurrentfig,'Units','normalized')
    3841hhcurrentfig=guidata(hcurrentfig);
    3942test_zoom=get(hhcurrentfig.zoom,'Value');%test for zoom action, first priority
     
    111114            break
    112115        elseif isequal(htype,'uicontrol') && isequal(get(hchild(ichild),'Visible'),'on')
    113             msgbox(get(hchild(ichild),'String'),get(hchild(ichild),'Tag'))
     116                msg_pos(1:2)=currentfig_pos(1:2)+obj_pos(1:2).*currentfig_pos(3:4);
     117                msgbox_uvmat(['uicontrol: ' get(hchild(ichild),'Tag')],'',get(hchild(ichild),'String'),msg_pos)
     118            %msgbox(get(hchild(ichild),'String'),get(hchild(ichild),'Tag'))
    114119            break
    115120        end
Note: See TracChangeset for help on using the changeset viewer.