Code covered by the BSD License  

Highlights from
Sliceomatic

image thumbnail

Sliceomatic

by

 

19 Sep 2001 (Updated )

Volume slice visualization gui

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

activelabel(label, string)
function activelabel(label, string)
% ACTIVELABEL(LABEL, STRING) - Create a label on GCA which is
%     active.  LABEL is the property of GCA whose label you are
%     setting.  STRING is the initial text string for the label.

% Copyright 2000, 2001, 2002, 2003, 2004, 2005 The MathWorks Inc

  l = get(gca,label);
  
  set(l,'string',string);
  set(l,'buttondownfcn',@activelabelbuttondown);
  
function activelabelbuttondown(obj, action)
% Callback when one of our active labels is clicked on.
  
  set(obj,'edit','on');
  
    

Contact us