GetMousePos

From SCAR Divi Manual
Revision as of 01:01, 26 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <func>procedure GetMousePos(var x, y: Integer);</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function gets the cursor position relative ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

<func>procedure GetMousePos(var x, y: Integer);</func>

Availability

SCAR Divi 3.00 > Current

Description

This function gets the cursor position relative to the selected client window and returns it in x and y.

Example

var
  x, y: Integer;

begin
  GetMousePos(x, y);
  WriteLn('The current Mouse position is ' + IntToStr(x) + ', ' + IntToStr(y));
end.

See Also