function display_text(S, name, pos) %DISPLAY_TEXT - Display a scrolling text window. % % DISPLAY_TEXT(S, NAME, POS) % % inputs: % S % NAME - the title of the text window % POS - the position of the text window % % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % global Uibgcolor fig_ed=figure('position', pos, 'Name', name, 'color', Uibgcolor, 'NumberTitle', 'off'); scr_ed=scrledit('init',[0 0.2 0.97 .8], S); uicontrol('style', 'frame',... 'units', 'normalized',... 'pos', [0.03 0.03 0.94 0.14],... 'background', Uibgcolor); okb=uicontrol('style', 'push',... 'units', 'normalized',... 'pos', [0.45 0.06 0.1 0.06],... 'horiz', 'center',... 'string', 'Ok',... 'Callback', 'close(gcf);'); return