Contents  All Classes  Index A-Z  All Units


ScreenRatio function

function ScreenRatio(ACanvas: TCanvas3D): Double;

Unit
TeeProcs

Description
Returns a number between 0 and 1 indicating the proportion of horizontal screen resolution versus vertical screen resolution:

ScreenRatio = Horizontal / Vertical

This function is used by TCircledSeries to calculate the horizontal and vertical radius of the series so it appears as a circle and not an ellipse on screen.

Note:
On some machines and operating systems the screen ratio cannot be correctly calculated and might return wrong results (ie: on Remote Desktop sessions).





Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.