The MessageDlgPos functions as MessageDlg except that it displays the message at the position specified by X and Y. Refer to the entry for MessageDlg for additional information.
Example
This example uses a button on a form. When the user clicks the button, a message box appears with a Yes, No, and Cancel button on it:
procedure TForm1.Button1Click(Sender: TObject);
begin
MessageDlgPos('Are you there?',mtConfirmation, mbYesNoCancel, 0, 200, 200);
> 안녕하세요
> 한가지만 좀 갈켜 주세요
> application.messagebox ...(어쩌고 저쩌고..) 해서
> 메시지 상자 띄울때 상자의 위치를 지정 할 수는 없나요?
> 항상 화면 가운데 뜨더라구요(폼의 위치와는 관계없이-_-);
> 이거 위치 조정 할 줄 알면 좀 갈켜 주세요...
> Please~
>
> 최소한 폼 가운데라도 뜨게 하고 싶어서...T.T;
안녕하세요?
델파이 도움말에 나와있는 내용입니다.
MessageDlgPos function
Unit
Dialogs
MessageDlg displays a message dialog box at the specified screen coordinates.
function MessageDlgPos(const Msg: string; AType: TMsgDlgType;
AButtons: TMsgDlgButtons; HelpCtx: Longint; X, Y: Integer): Word;
Description
The MessageDlgPos functions as MessageDlg except that it displays the message at the position specified by X and Y. Refer to the entry for MessageDlg for additional information.
Example
This example uses a button on a form. When the user clicks the button, a message box appears with a Yes, No, and Cancel button on it:
procedure TForm1.Button1Click(Sender: TObject);
begin
MessageDlgPos('Are you there?',mtConfirmation, mbYesNoCancel, 0, 200, 200);
end;