New Non Blocking Message Dialog Function In Delphi XE7 Firemonkey On Android And IOS

Delphi XE7 Firemonkey Nonblocking Message Dialog Anonymous Method

Embarcadero has created a new non blocking MessageDlg() function in Delphi XE7 and Appmethod Firemonkey to better support Android. The code does work on IOS, Windows, and OSX too. The new function takes an anonymous method as the last parameter and it gets executed when the user clicks one of the buttons. In Delphi XE5 and XE6 the function would block and would not execute code after the user clicked one of the buttons from the MessageDlg(). Here is the example MessageDlg() code from XE5 and XE6:

And here is the new code for Firemonkey XE7 with the anonymous method used:

Head over and check out the full documentation about the MessageDlg() function on the Embarcadero docwiki.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

New Non Blocking Message Dialog Function In Delphi XE7 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

5 Responses to New Non Blocking Message Dialog Function In Delphi XE7 Firemonkey On Android And IOS

  1. COHEN gaby says:

    The question is: how do you programmatically close the dialog box in android (for example after showing an info box for 5 s)?

  2. Nilton G says:

    Project to compile in Delphi 10 seattle, presents this error:

    [dcc32 Error] ufrmMain.pas(352): E2250 There is no overloaded version of ‘MessageDlg’ that can be called with these arguments

    How to solve this error?

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE7 Firemonkey Moto 360 Watch Beaglebone Mini Computer Android
Develop Delphi XE7 Firemonkey Android Apps For The Moto 360 Watch And Beaglebone Black

Embarcadero developers Jim McKeeth and Malcolm Groves are literally on fire lately with their tutorials for building Delphi XE7 Firemonkey...

Close