Changeset 410 for trunk/src/delete_object.m
- Timestamp:
- May 6, 2012, 4:06:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/delete_object.m
r302 r410 11 11 huvmat=findobj('tag','uvmat');%handles of the uvmat interface 12 12 UvData=get(huvmat,'UserData'); 13 hlist_object=findobj(huvmat,'Tag','ListObject');%handles of the object li çst in the uvmat interface13 hlist_object=findobj(huvmat,'Tag','ListObject');%handles of the object list in the uvmat interface 14 14 list_str=get(hlist_object,'String');%objet list 15 ObjectData=[];%default16 hdisplay=[];17 15 if isequal(floor(hObject),hObject) %case of an index 18 16 if ~isempty(UvData) & isfield(UvData, 'Object') & length(UvData.Object)>=hObject … … 76 74 set(hlist_object,'String',list_str) 77 75 set(hlist_object,'Value',length(list_str)) 78 hlist_object=findobj(huvmat,'Tag','list_object_2');%handles of the object liçst in the uvmat interface 79 set(hlist_object,'String',[list_str;{'...'}]) 80 set(hlist_object,'Value',length(list_str)+1) 76 hlist_object_1=findobj(huvmat,'Tag','ListObject_1');%handles of the first object list in the uvmat interface 77 old_index=get(hlist_object_1,'Value'); 78 set(hlist_object_1,'String',list_str) 79 if hObject<=old_index 80 set(hlist_object_1,'Value',old_index-1) 81 end 82 % hlist_object=findobj(huvmat,'Tag','list_object_2');%handles of the object liçst in the uvmat interface 83 % set(hlist_object,'String',[list_str;{'...'}]) 84 % set(hlist_object,'Value',length(list_str)+1)
Note: See TracChangeset
for help on using the changeset viewer.