


Pulls the clicked object to the top of the ui stack; useful for raising partially masked objects to the front of a plot. GUI-shortcut for 'uistack': Left-clicking brings to the top, right-clicking sends to bottom.


0001 function raise_me (hObject, event, me) 0002 % Pulls the clicked object to the top of the ui stack; useful 0003 % for raising partially masked objects to the front of a plot. 0004 % GUI-shortcut for 'uistack': Left-clicking brings to the top, 0005 % right-clicking sends to bottom. 0006 0007 % Last Modified By: sbm on Sat Aug 21 00:57:32 2004 0008 0009 myfig = gcf; 0010 oldptr = get(myfig, 'Pointer'); 0011 set(myfig, 'Pointer', 'watch'); 0012 0013 switch(get(myfig, 'SelectionType')), 0014 case ('normal'), 0015 uistack(me, 'top'); 0016 case ('alt'), 0017 uistack(me, 'bottom'); 0018 end 0019 0020 set(myfig, 'Pointer', oldptr); 0021 drawnow;