RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Dialogs.ShowMessagePos Function

Displays a message box at a specified location.

Pascal
procedure ShowMessagePos(const Msg: string; X: Integer; Y: Integer);
C++
ShowMessagePos(const AnsiString Msg, int X, int Y);

Dialogs

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.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!