Code covered by the BSD License  

Highlights from
FRETSCAL

image thumbnail

FRETSCAL

by

Eric Muller

 

For the FRET analysis of images of yeast cells labeled with YFP and CFP.

fgetfont
function fgetfont
%Version 4/3/09
%Displays the dialog box for entering the context for the output images.
global byedit fontpics h_getfontfig darkgreen

x = .4; y = .5; w = .2; h = .15;

h_getfontfig = figure('Color', darkgreen, 'units','normalized','name','Font Size','ToolBar','none','NumberTitle','off','menubar','none','position',[ x y w h ] );
uicontrol( 'units', 'normalized', 'style', 'text', 'string', 'Enter the fontsize for display', 'position', [ 1/8 9/12 6/8 1/6 ],'background','black','fore','white', 'fontsize', fontpics );
byedit   = uicontrol( h_getfontfig, 'units', 'normalized','background','white', ...
    'style', 'edit', 'string', num2str( fontpics ), 'position', [ .4 5/12 .2 1/6 ], 'value', fontpics, 'fontsize', fontpics );
uicontrol( 'style','pushbutton', 'units', 'normalized',  'string','Done',...
    'position',[ .4 1/12 .2 1/6 ], 'callback',@fgetfont2_callback, 'fontsize', fontpics);

function fgetfont2_callback( gcf, eventdata, handles )
%Version = 9/26/07
%Gets the font size from the text box.
global fontpics byedit h_getfontfig
limitstring = get( byedit, 'string' );
fontpics = str2double( limitstring );
fontpics = round(fontpics);
close(h_getfontfig);
fupdate;


Contact us