Show: Delphi C++
Display Preferences

FMX.Dialogs.ShowMessage

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ShowMessage(const AMessage: string);

C++

extern DELPHI_PACKAGE void __fastcall ShowMessage(const System::UnicodeString AMessage);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Dialogs.pas
FMX.Dialogs.hpp
FMX.Dialogs FMX.Dialogs

Description

Displays a dialog box with the specified message and an OK button.

ShowMessage Behaves Differently On Different Platforms

On desktop platforms, ShowMessage behaves synchronously. The call finishes only when the user closes the dialog box.
On mobile platforms, ShowMessage behaves asynchronously. The call finishes instantaneously, it does not wait for the user to close the dialog box.

If you want to force a specific behavior across different platforms, use IFMXDialogServiceAsync.ShowMessageAsync or IFMXDialogServiceSync.ShowMessageSync from the FMX.Platform unit.

Personal tools
In Other Languages
Previous Versions
Assistance