Difference between revisions of "GetBoxSize"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure GetBoxSize(const Box: TBox; out Width, Height: Integer); </source> ==Availability== SCAR Divi 3.35 > Current ==De...")
 
(No difference)

Latest revision as of 15:00, 10 November 2012

Definition

procedure GetBoxSize(const Box: TBox; out Width, Height: Integer);

Availability

SCAR Divi 3.35 > Current

Description

Returns the dimensions of a given TBox Box in Width and Height.

Example

var
  W, H: Integer;
 
begin
  GetBoxSize(Box(1, 1, 3, 3), W, H);
  WriteLn(W);
  WriteLn(H);
end.

Output:

3
3