Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Do 08.02.07 21:31 
Wie mache ich einen Typecast auf TRect?
ausblenden Delphi-Quelltext
1:
PtInRect(TRect(Left,Top,Left + Width,Top + Height))					

Das will Delphi nicht.
[Fehler] ')' erwartet, aber ',' gefunden

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Do 08.02.07 21:34 
Hallo,
gar nicht, es gibt die Function rect, die dir ein TRect zurückgibt.

mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)