source: aedes_calc_wait.m

Last change on this file was 80, checked in by tjniskan, 9 years ago
  • Changed the historical "an2_" prefix to "aedes_" in all files. NOTE:

Any script or function relying to Aedes functions will be broken
because of this. Just do a search/replace from "an2_" to "aedes_" in
your files and all should be well...

  • Changed the name of an2_readtab.m to a more informative

aedes_readphasetable.m

File size: 1.6 KB
Line 
1function [h,txh] = aedes_calc_wait(str)
2% AEDES_CALC_WAIT - Wait message box
3%
4% Synopsis:
5%       [h,txh] = aedes_calc_wait(str)
6%
7% Description:
8%       Displays wait message box with text 'str'. Output argument 'h' is
9%       handle to message box and 'txh' is handle to text string.
10%
11% Examples:
12%       [h,txh] = aedes_calc_wait('Demo');
13%       pause(1)
14%       set(txh,'String','Almost ready.');
15%       pause(1)
16%       delete(h)
17%
18% See also:
19%       AEDES_WBAR, AEDES
20
21% This function is a part of Aedes - A graphical tool for analyzing
22% medical images
23%
24% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>
25%
26% Department of Physics, Department of Neurobiology
27% University of Kuopio, FINLAND
28%
29% This program may be used under the terms of the GNU General Public
30% License version 2.0 as published by the Free Software Foundation
31% and appearing in the file LICENSE.TXT included in the packaging of
32% this program.
33%
34% This program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
35% WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
36%
37% Special Thanks to Perttu Ranta-aho for this marvelous piece of code...
38% :-)
39
40h = msgbox(str,'Processing...','help');
41
42% - Replace 'OK'-button with text 'Wait...' -
43txh = findall(findobj(h,'type','axes'),'tag','MessageBox');
44set(txh,'Fontsize',8);
45btn_h = findobj(h,'style','pushbutton');
46set(btn_h,'units','normal')
47pos = get(btn_h,'position');
48set(btn_h,...
49    'String','Please wait...',...
50    'Style','Text',...
51    'position',[0 pos(2) 1 pos(4)], ...
52    'Fontsize',12)
53
54% - Set pointer -
55set(h,'Pointer','watch','Units','normal');
56
57% - Commit changes -
58set(h,'visible','on')
59drawnow
60
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008