Changeset 497 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Jul 21, 2012, 11:15:52 PM (12 years ago)
Author:
sommeria
Message:

cleaning and small bug repair.
pb of histogram for filter data solved
display of uicontrol by right mouse selection improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r456 r497  
    129129                end
    130130                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'
    132133                if isequal(get(hObject,'SelectionType'),'alt')  && isequal(get(hchild,'Visible'),'on') && ~isequal(get(hchild,'tag'),'frame_object')&&...
    133134                        ~isequal(get(hchild,'tag'),'ListObject')
    134135                    if ~strcmp(get(hchild,'Style'),'frame')%do not visualisaze frames
    135136                        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);
    137139                        break
    138140                    end
     
    152154                        if strcmp(htype,'uicontrol') && strcmp(get(hchild,'Visible'),'on')
    153155                            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);
    155158                            break
    156159                        end
     
    165168if ~isempty(output_str)               
    166169    set(hObject,'Units','pixels')
     170    if strcmp(get(hchild,'enable'),'on')
    167171    set(hchild,'String',output_str)
     172    end
    168173end
    169174   
Note: See TracChangeset for help on using the changeset viewer.