Contents  All Classes  Index A-Z  All Units


TCustomBarSeries.ApplyBarOffset
TCustomBarSeries

function ApplyBarOffset(Position: Integer): Integer;

Unit
Series

Description
The ApplyBarOffset function modifies and returns the Position parameter. BarSeries have an OffsetPercent property that makes all Bars to be displayed horizontally a specific amount of pixels based on Bar's width.

The Position parameter must be expressed in screen pixels.

The formula used is:

result:= Position + Round( OffsetPercent * BarWidth / 100.0 )

When OffsetPercent property is zero (the default), the Position parameter is returned unmodified.



Submit your feedback about this page.

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