Changeset 710 for trunk/src/mouse_down.m
- Timestamp:
- Feb 16, 2014, 5:35:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r691 r710 150 150 hhchildren=get(hchild,'Children');%handles of all objects in the selected panel 151 151 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 153 153 PosChildren=get(hhchildren,'Position'); 154 154 PosLength=cellfun('length',PosChildren); … … 165 165 display_str=get(hhchild,'TooltipString'); 166 166 msgbox_uvmat(['uicontrol: ' get(hhchild,'Tag')],display_str,get(hhchild,'String'),msg_pos); 167 else 168 set(hObject,'CurrentObject',hhchild) 167 169 end 168 170 end 169 end 171 end 170 172 end 171 173 end … … 187 189 if strcmp(get(hObject,'SelectionType'),'alt') && strcmp(htype,'axes') && ~test_edit && ~test_create 188 190 set(0,'Unit','pixels') 189 GUISize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right191 %GUISize=get(0,'ScreenSize');% get the size of the screen, to put the fig on the upper right 190 192 Width=300;% fig width in points (1/72 inch) 191 193 Height=200; 192 194 Left=GUI_pos(1)+GUI_pos(3)-Width; %right edge close to the right, with margin=40 193 195 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]); 195 197 AxeData.htext_display=uicontrol('Style','edit','Units','normalized', 'Position', [0.05 0.05 0.9 0.9],'Max',2,'BackgroundColor',[1 1 1],... 196 198 'FontUnits','points','FontSize',14);
Note: See TracChangeset
for help on using the changeset viewer.