Changeset 710 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Feb 16, 2014, 5:35:45 PM (10 years ago)
Author:
sommeria
Message:

various improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r691 r710  
    150150                hhchildren=get(hchild,'Children');%handles of all objects in the selected panel
    151151                check_visible=strcmp(get(hhchildren,'Visible'),'on');%=1 if visible='on', =0 otherwise
    152                 hhchildren=hhchildren(check_visible); %keep only the visible children               
     152                hhchildren=hhchildren(check_visible); %keep only the visible children
    153153                PosChildren=get(hhchildren,'Position');
    154154                PosLength=cellfun('length',PosChildren);
     
    165165                        display_str=get(hhchild,'TooltipString');
    166166                        msgbox_uvmat(['uicontrol: ' get(hhchild,'Tag')],display_str,get(hhchild,'String'),msg_pos);
     167                    else
     168                        set(hObject,'CurrentObject',hhchild)
    167169                    end
    168170                end
    169             end           
     171            end
    170172    end
    171173end
     
    187189if strcmp(get(hObject,'SelectionType'),'alt') && strcmp(htype,'axes') && ~test_edit && ~test_create
    188190    set(0,'Unit','pixels')
    189     GUISize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right   
     191    %GUISize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right   
    190192    Width=300;% fig width in points (1/72 inch)
    191193    Height=200;
    192194    Left=GUI_pos(1)+GUI_pos(3)-Width; %right edge close to the right, with margin=40
    193195    Bottom=GUI_pos(2)+GUI_pos(4)-Height; %put fig at top right
    194     hfig_text=figure('Name','text_display','MenuBar','none','NumberTitle','off','Position',[Left,Bottom,Width,Height]);
     196   % hfig_text=figure('Name','text_display','MenuBar','none','NumberTitle','off','Position',[Left,Bottom,Width,Height]);
    195197    AxeData.htext_display=uicontrol('Style','edit','Units','normalized', 'Position', [0.05 0.05 0.9 0.9],'Max',2,'BackgroundColor',[1 1 1],...
    196198        'FontUnits','points','FontSize',14);
Note: See TracChangeset for help on using the changeset viewer.