Difference between revisions of "MouseInBox"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 13: Line 13:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn(MouseInBox(IntToBox(0, 0, 500, 500)));
+
   WriteLn(MouseInBox(Box(0, 0, 500, 500)));
 
end.
 
end.
 
</source>
 
</source>

Latest revision as of 18:19, 3 July 2011

Definition

function MouseInBox(const Box: TBox): Boolean;

Availability

SCAR Divi 3.25 > Current

Description

Returns true if the cursor position relative to the client is inside of a box specified by the TBox Box.

Example

begin
  WriteLn(MouseInBox(Box(0, 0, 500, 500)));
end.

See Also