TCandleSeries.Clicked
 
 
 

All Units  All Classes  Properties, Methods and Events  

TCandleSeries.Clicked
TCandleSeries

function Clicked(x, y: Integer): Integer; override;

Unit
CandleCh

Description
Calculates which candle point contains xy parameters (in pixel coordinates).

Returns -1 if no candle point contains xy, or a number from 0 to Count-1 indicating the candle point.

Example of use:

At Chart1.OnMouseMove event, determine if the mouse cursor is over any candle point.


procedure TForm1.Chart1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
var tmp : Integer;
begin
tmp:=Series1.Clicked(x,y);
if tmp=-1 then Caption:=''
else Caption:='Candle: '+IntToStr(tmp);
end;




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