Difference between revisions of "GetMousePos"

From SCAR Divi Manual
Jump to: navigation, search
(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 ...")
 
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
<func>procedure GetMousePos(var x, y: Integer);</func>
+
<source lang="scar" lines="false">
 +
procedure GetMousePos(var x, y: Integer);
 +
</source>
  
 
==Availability==
 
==Availability==

Latest revision as of 12:36, 26 June 2011

Definition

procedure GetMousePos(var x, y: Integer);

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