Changeset 713 for trunk/src/mouse_down.m
- Timestamp:
- Feb 20, 2014, 3:49:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r710 r713 140 140 msg_pos(1:2)=GUI_pos(1:2)+obj_pos(1:2).*GUI_pos(3:4); 141 141 display_str=get(hchild,'TooltipString'); 142 msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],display_str,get(hchild,'String'),msg_pos); 142 output=msgbox_uvmat(['uicontrol: ' get(hchild,'Tag')],display_str,get(hchild,'String'),msg_pos); 143 %update the parent edit box and indicat that refresh is needed with the new input 144 if strcmp(get(hchild,'Style'),'edit')&&strcmp(get(hchild,'Enable'),'on') 145 set(hchild,'String',output) 146 if strcmp(get(get(hchild,'parent'),'tag'),'InputFile') 147 hhREFRESH=hhCurrentGUI.InputFileREFRESH; 148 else 149 hhREFRESH=hhCurrentGUI.REFRESH; 150 end 151 switch get(hchild,'tag')% tag of the current edit box 152 case {'RootPath', 'SubDir','RootFile','FileExt','RootPath_1', 'SubDir_1','RootFile_1','FileExt_1'} 153 set(hhREFRESH,'BackgroundColor',[1 0 1])%indicat that REFRESH must be activated (intyroduce the whole series) 154 case 'num_IndexIncrement'% no action 155 otherwise 156 set(hhREFRESH,'BackgroundColor',[1 0 1])%indicat that run0 must be activated 157 end 158 end 143 159 return %leave the function once a uicontrol has been selected 144 160 end … … 164 180 msg_pos=GUI_pos(1:2)+panel_pos(1:2).*GUI_pos(3:4)+PosChildren(ind_object,1:2).*panel_pos(3:4).*GUI_pos(3:4); 165 181 display_str=get(hhchild,'TooltipString'); 166 msgbox_uvmat(['uicontrol: ' get(hhchild,'Tag')],display_str,get(hhchild,'String'),msg_pos); 182 output=msgbox_uvmat(['uicontrol: ' get(hhchild,'Tag')],display_str,get(hhchild,'String'),msg_pos); 183 %update the parent edit box and indicat that refresh is needed with the new input 184 if strcmp(get(hhchild,'Style'),'edit')&&strcmp(get(hhchild,'Enable'),'on') 185 set(hhchild,'String',output) 186 if strcmp(get(get(hhchild,'parent'),'tag'),'InputFile') 187 hhREFRESH=hhCurrentGUI.InputFileREFRESH; 188 else 189 hhREFRESH=hhCurrentGUI.REFRESH; 190 end 191 switch get(hhchild,'tag')% tag of the current edit box 192 case {'RootPath', 'SubDir','RootFile','FileExt','RootPath_1', 'SubDir_1','RootFile_1','FileExt_1'} 193 set(hhREFRESH,'BackgroundColor',[1 0 1])%indicat that REFRESH must be activated (intyroduce the whole series) 194 case 'num_IndexIncrement'% no action 195 otherwise 196 set(hhREFRESH,'BackgroundColor',[1 0 1])%indicat that run0 must be activated 197 end 198 end 167 199 else 168 200 set(hObject,'CurrentObject',hhchild)
Note: See TracChangeset
for help on using the changeset viewer.