Difference between revisions of "MouseInBox"
From SCAR Divi Manual
(Created page with "==Definition== <func>function MouseInBox(const Box: TBox): Boolean;</func> ==Availability== SCAR Divi 3.25 > Current ==Description== Returns True if the cursor position rel...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
− | < | + | <source lang="scar" lines="false"> |
+ | function MouseInBox(const Box: TBox): Boolean; | ||
+ | </source> | ||
==Availability== | ==Availability== | ||
Line 6: | Line 8: | ||
==Description== | ==Description== | ||
− | Returns [[ | + | Returns [[true]] if the cursor position relative to the client is inside of a box specified by the [[TBox]] '''Box'''. |
==Example== | ==Example== | ||
<source lang="scar"> | <source lang="scar"> | ||
begin | begin | ||
− | WriteLn(MouseInBox( | + | WriteLn(MouseInBox(Box(0, 0, 500, 500))); |
end. | end. | ||
</source> | </source> |
Latest revision as of 17: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.