Difference between revisions of "Box"
From SCAR Divi Manual
(→Description) |
(→Example) |
||
Line 20: | Line 20: | ||
begin | begin | ||
b := Box(1, 2, 3, 4); | b := Box(1, 2, 3, 4); | ||
− | WriteLn('TBox(' + IntToStr(b.x1) + ',' + IntToStr(b.y1) + ',' + IntToStr(b.x2) + ',' + IntToStr(b.y2) + ')'); | + | WriteLn('TBox(' + IntToStr(b.x1) + ',' + IntToStr(b.y1) + ',' + |
+ | IntToStr(b.x2) + ',' + IntToStr(b.y2) + ')'); | ||
end. | end. | ||
</source> | </source> |
Latest revision as of 14:53, 2 July 2011
Definition
function Box(x1, y1, x2, y2: Integer): TBox;
Availability
SCAR Divi 3.26 > Current
Aliases
- IntToBox (SCAR Divi 3.00 > Current)
Description
Initializes a TBox with the given coordinates (x1, y1) and (x2, y2) which form the upper-left corner and bottom-right corner of the box defined by the TBox.
Example
var b: TBox; begin b := Box(1, 2, 3, 4); WriteLn('TBox(' + IntToStr(b.x1) + ',' + IntToStr(b.y1) + ',' + IntToStr(b.x2) + ',' + IntToStr(b.y2) + ')'); end.
Output:
TBox(1,2,3,4)