FMX.Platform.IFMXDialogServiceSync.MessageDialogSync

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function  MessageDialogSync(const AMessage: string; const ADialogType: TMsgDlgType; const AButtons: TMsgDlgButtons;  const ADefaultButton: TMsgDlgBtn; const AHelpCtx: THelpContext): Integer;

C++

virtual int __fastcall MessageDialogSync(const System::UnicodeString AMessage, const System::Uitypes::TMsgDlgType ADialogType, const System::Uitypes::TMsgDlgButtons AButtons, const System::Uitypes::TMsgDlgBtn ADefaultButton, const System::Classes::THelpContext AHelpCtx) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform IFMXDialogServiceSync

Description

Displays a dialog box with a custom message, dialog type, set of buttons and help context ID.

MessageDialogSync works synchronously. Calls to MessageDialogSync finish only when the user closes the dialog box. To work asynchronously, use IFMXDialogServiceAsync.MessageDialogAsync.

MessageDialogSync receives the following parameters:

MessageDlg returns the value of the button that the user selected.

Note: The Help button does not return a value because it does not close the dialog box.

To call MessageDialogSync without the need of an instance of IFMXDialogServiceSync, use TDialogServiceSync.MessageDialog instead.

Platform Support

Platform Support
Windows
YesC++11Feature.png
OS X
YesC++11Feature.png
iOS
YesC++11Feature.png
Android

See Also