tags:

views:

20

answers:

0

Hello,

Code below works fine in Delphi for Win32 but doesn't compile with VCL.NET personalities.

procedure TForm1.FormCreate(Sender: TObject);
var r: TRect;
begin
  r:=Rect(0, 0, 100, 100);
end;

Error message I get is this:

E2003 Undeclared identifier: 'Rect'

For now I've used an own method which returns a TRect from given Left, Top, Right and Bottom coordinates. Does anybody know a Delphi.NET 2005 "built-in" solution?

Thanks in advance.