Hans
Hans

Reputation: 2262

Cannot show a message during program load on iOS

During load of my application I am loading settings and other things, and want to be able to show a message to the user. However this does not work on my Delphi XE6 FireMonkey application targeting iOS (iOSSimulator).

When I call ShowMessage or MessageDlg during program load, it locks, and nothing is shown. It is probably entering the modal state, but since the message is not shown, it is not possible to continue. Even in the main forms FormActivate, calling ShowMessage does not show anything.

How can I show a message while loading the application?

Upvotes: 3

Views: 263

Answers (2)

Hans
Hans

Reputation: 2262

I am surprised that no one have written about this before and that no Firemonkey users have answered my question. That you are allowed to call Showmessage during program load, but the app locks if you do it, is not appropriate behavior. In a desktop app, it is quite normal to show a message during program load, in case something fails.
I am converting a 500k line project from VCL to FMX, and since I cannot show a message on iOS, I will have to restructure the create and load code.

The solution I plan to implement is to make failsafe solutions that will allow the app to load no matter what happens, then when the app is running, I can show whatever messages have come up during load (those that the user have to consider).

If anyone have more information or suggestions for a better solution, please comment.

Upvotes: 0

nadim
nadim

Reputation: 786

You can use loading symbol along with Message. It will serve your purpose. You can use "MBProgressHud", you not need to give any extra effort, just pass parameter and it will display loading image along with text. Enjoy!

Upvotes: 1

Related Questions