home *** CD-ROM | disk | FTP | other *** search
/ Delphi 4 Bible / Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso / source / Strings / Position.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-02-13  |  394 b   |  12 lines

  1. var
  2.   W: Word;    { Result of MessageDlgPos }
  3.   P: TPoint;  { Coordinate X, Y record }
  4. begin
  5.   P.X := 0;  { Assign client X value }
  6.   P.Y := 0;  { Assign client Y value }
  7.   P := ClientToScreen(P);  { Convert P to screen coordinates }
  8.   W := MessageDlgPos('Function: MessageDlg',
  9.     mtInformation, [mbYes, mbNo, mbIgnore], 0,
  10.     P.X, P.Y);  { Pass converted X, Y to function }
  11. end;
  12.