Article | 41023999 |
Type | HowTo |
Product | Engine |
Version | 5.1.1.1037 |
Date Added | 6/3/2005 |
Submitted by | Friedhelm Grossekathofer |
Keywords |
Within Delphi a variable Screen is automaticly created at runtime. This variable represents the monitor. You can find out what form is active... The variable is of type TSreen.
But when using VDPro screen becomes a constant and is of type integer. When I look up for the declaration of screen I see screen is redefined in VDProLib5_TLB in rhe section vdConstPrintMode.
begin a:=Screen.Width /2; form1.Caption:=FloatToStr(a); enduse it like :
begin a:=Forms.Screen.Width /2; form1.Caption:=FloatToStr(a); end