unit MessageDlgPos;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

// BeginExample: MessageDlgPos
// Routine: Dialogs.MessageDlgPos

// BeginCode
{
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
  // can't do TMsgDlgButtons() << mbYesNoCancel
  Dialogs.MessageDlgPos('Are you there?', mtConfirmation, mbYesNoCancel, 0, 200, 200, mbYes);
end;
// EndCode
// EndExample: MessageDlgPos
end.
