displayin status msg's in a gui

I hav a gui and the backend of it takes some time after getting input to generate the output. I feel like my app will be more user friendly if the user can know whether the program is running or not..i.e i want my gui to display a status msg like processing wen the program is running and completed after my program has run.. how should i go abt this??

 採用された回答

Jan
Jan 2011 年 2 月 24 日

1 投票

Usual methods:
  • A progressbar, e.g. WAITBAR - this allows the user to estimate the remaining time
  • UICONTROL('Style', 'Text', 'String', 'Please wait');
  • Have you seen the "Busy" message in the bottom left of Matlab's command window while the program is running?
  • Set the window title, which allows the user to see the progres state in the taskbar:
FigH = figure('NumberTitle', 'off');
set(FigH, 'Name', 'My program: RUNNING...');
drawnow;
...
set(FigH, 'Name', 'My program');
drawnow;

1 件のコメント

Ram
Ram 2011 年 2 月 24 日
thank u .. :) it worked!!

サインインしてコメントする。

その他の回答 (1 件)

Robert Cumming
Robert Cumming 2011 年 2 月 24 日

0 投票

see
help waitbar

1 件のコメント

Ram
Ram 2011 年 2 月 24 日
thank u :)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

質問済み:

Ram
2011 年 2 月 24 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by