To make things clearer, it could be mentioned that TChartAxis.IsPointInside behaves as TChartAxis.Marks.IsPointInside
If I click on the axis title, TChartAxis.IsPointInside returns false, still the title is a part of the axis.
Example:
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.LeftAxis.Title.Visible:=True;
Chart1.LeftAxis.Title.Caption:='Left axis title';
end;
procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
APoint: TPoint;
begin
APoint.x:=X;
APoint.y:=Y;
if Chart1.LeftAxis.IsPointInside(APoint)= True then ShowMessage ('Inside');
end;
I would like to use the case to ask if there is a way to determine where the axis title is in the chart and/or if the mouse is inside it?