TCandleSeries.ClickedCandle
 
 
 

All Units  All Classes  Properties, Methods and Events  

TCandleSeries.ClickedCandle
TCandleSeries

function ClickedCandle(ValueIndex: Integer; Const P: TPoint): Boolean;

Unit
CandleCh

Description
Returns True if point "P" (in pixel coordinates) is inside Candle point at ValueIndex position.

Example:

The following code is equivalent to call Series1.Clicked method:

function CandleUnderMouse(Candle:TCandleSeries):Integer;
var t: Integer;
P: TPoint;
begin
P:=Candle.ParentChart.GetCursorPos;
for t:=0 to Candle.Count-1 do
if Candle.ClickedCandle(t,P) then
begin
result:=t;
exit;
end;
result:=-1;
end;




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