How to use SplashScreen with my GUI?

1 回表示 (過去 30 日間)
adi kul
adi kul 2016 年 6 月 24 日
コメント済み: Adam 2016 年 6 月 24 日
Hello All, I have developed the GUI and exported it into a standalone .exe version. The issue is this application takes time to initiate. Hence i wanted to give a quick response to user with a splash screen which will pop up on click and will close once my app is ready for use. By google search I found this : http://in.mathworks.com/matlabcentral/fileexchange/30508-splashscreen which I suppose scripted for the same requirement. But I am not sure how to use it? I searched for documentation but there aren't any. Also script does not have comment line explaining how to use it in GUIDE developed GUI.
  2 件のコメント
Adam
Adam 2016 年 6 月 24 日
編集済み: Adam 2016 年 6 月 24 日
It is usually best to contact the author on the submission page for questions related to specific file exchange submissions. Or if you are lucky someone else who uses it will answer there also.
That submission does give an example of usage though.
adi kul
adi kul 2016 年 6 月 24 日
There are people asked the question on the file exchange link and the author did not respond to those specific questions only. hence I had to ask it here.

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

回答 (1 件)

Adam
Adam 2016 年 6 月 24 日
編集済み: Adam 2016 年 6 月 24 日
You should just be able to insert the code given in the example into the OpeningFcn of a GUIDE GUI.
Put the creation code as the first thing in the OpeningFcn and the final deletion of tha splash screen as the last thing.
If your UI initialises too fast you can always throw in a pause instruction before deleting the splash screen. Part of the time that it takes to initialise a compiled application is concerned with the MCR (Matlab Runtime) initialisation though and the splash screen will not kick in until after this has initialised itself. I don't know off-hand how long this takes.
  2 件のコメント
adi kul
adi kul 2016 年 6 月 24 日
oh okay. So you mean, even after putting splash screen it will not flash asap because MCR it self takes some time to initiate. right?
Adam
Adam 2016 年 6 月 24 日
Yes, Any Matlab code requires the MCR in order to run therefore until it has initialised your splash screen will not trigger even if it is the first instruction in your GUI OpeningFcn

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by