Changeset 497 for trunk/src/mouse_down.m
- Timestamp:
- Jul 21, 2012, 11:15:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r456 r497 129 129 end 130 130 break 131 case 'uicontrol' %if the mouse is over a uicontrol, duplicate the display in an editable zoom window 131 %if the mouse is over a uicontrol, duplicate the display in an editable zoom window 132 case 'uicontrol' 132 133 if isequal(get(hObject,'SelectionType'),'alt') && isequal(get(hchild,'Visible'),'on') && ~isequal(get(hchild,'tag'),'frame_object')&&... 133 134 ~isequal(get(hchild,'tag'),'ListObject') 134 135 if ~strcmp(get(hchild,'Style'),'frame')%do not visualisaze frames 135 136 msg_pos(1:2)=GUI_pos(1:2)+obj_pos(1:2).*GUI_pos(3:4); 136 output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],'',get(hchild,'String'),msg_pos); 137 display_str=get(hchild,'TooltipString'); 138 output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],display_str,get(hchild,'String'),msg_pos); 137 139 break 138 140 end … … 152 154 if strcmp(htype,'uicontrol') && strcmp(get(hchild,'Visible'),'on') 153 155 msg_pos(1:2)=GUI_pos(1:2)+obj_pos(1:2).*GUI_pos(3:4); 154 output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],'',get(hchild,'String'),msg_pos); 156 display_str=get(hchild,'TooltipString'); 157 output_str=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],display_str,get(hchild,'String'),msg_pos); 155 158 break 156 159 end … … 165 168 if ~isempty(output_str) 166 169 set(hObject,'Units','pixels') 170 if strcmp(get(hchild,'enable'),'on') 167 171 set(hchild,'String',output_str) 172 end 168 173 end 169 174
Note: See TracChangeset
for help on using the changeset viewer.