TeeProcs.ScreenRatio
 
 
 


ScreenRatio function

function ScreenRatio(Const 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).






Send us Help Feedback. Copyright 1995-2024 © by Steema Software. All Rights Reserved.