TChartListBox.PointInSection
 
 
 

All Units  All Classes  Properties, Methods and Events  

TChartListBox.PointInSection
TChartListBox

function PointInSection(Const P: TPoint; ASection: Integer): Boolean;

Unit
TeeLisB

Description
Returns true if co-ordinates x,y of Point are in the Section of the Listbox. Use this method to add custom functionality to the sectioned hotspot areas of the ChartListbox.

Typically (ChartListbox may be configured to hide sections):

Section 0: Series icon
Section 1: Series color
Section 2: Series Active
Section 3: Series Name

Example

Var P : TPoint;
InSection : Boolean;
begin
P.x:=5;
P.y:=5;

InSection:= ChartListBox1.PointInSection(P,0);

if InSection then
ShowMessage('In first area of Listitems');
end;



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