Vcl.Dialogs.ShowMessagePos
Delphi
procedure ShowMessagePos(const Msg: string; X, Y: Integer);
procedure ShowMessagePos(const Msg: string; X, Y: Integer; TaskDlgFlags: TTaskDialogFlags);
C++
extern DELPHI_PACKAGE void __fastcall ShowMessagePos(const System::UnicodeString Msg, int X, int Y)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Dialogs.pas Vcl.Dialogs.hpp |
Vcl.Dialogs | Vcl.Dialogs |
Description
Displays a message box at a specified location.
Call ShowMessagePos to display a simple message box with an OK button at a specified location. The name of the application's executable file appears as the caption of the message box.
The Msg parameter is the message that appears in the message box.
X and Y specify the screen coordinates where the message box should appear. A value of –1 means that the message box can appear anywhere in the specified dimension.
To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.
Note: If the user types Ctrl+C in the message box, the text of the message is copied to the clipboard.