Changeset 427 for trunk/src/mouse_down.m
- Timestamp:
- May 17, 2012, 11:33:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r425 r427 333 333 vers=0;% index of the name 334 334 detectname=1; 335 while detectname==1335 while ~isempty(detectname) 336 336 detectname=find(strcmp(ObjectNameNew,ListObject),1);%test the existence of the proposed name in the list 337 337 if detectname% if the object name already exists … … 348 348 ObjectName=ObjectNameNew; 349 349 set(sethandles.Name,'String',ObjectName)% display the default name in set_object 350 % IndexObj=numel(ListObject)+1;% append an object to the list in uvmat351 350 set(hhuvmat.ListObject,'String',[ListObject;{ObjectName}]);%complement the object list 352 351 set(hhuvmat.ListObject_1,'String',[ListObject;{ObjectName}]);%complement the object list 353 %set(hhuvmat.ListObject,'Value',[IndexObj_old(1) IndexObj])354 352 set(hhuvmat.ListObject,'Value',IndexObj) 355 353 set(hhuvmat.ViewObject,'Value',1) 356 % if isempty(object_name)357 % list_str{IndexObj}=[num2str(IndexObj) '-' ObjectData.Type];358 % set(sethandles.Name,'String',list_str{IndexObj})359 % else360 % list_str{IndexObj}=object_name;361 % end362 % set(hhuvmat.ListObject,'String',list_str)363 354 UvData.Object{IndexObj}.DisplayHandle_view_field=AxeData.CurrentObject; 364 355 set(huvmat,'UserData',UvData)
Note: See TracChangeset
for help on using the changeset viewer.