Search found 3 matches

by lukasz.walus
Fri Aug 08, 2025 5:33 am
Forum: VCL
Topic: Axis and Labels click event
Replies: 6
Views: 433

Re: Axis and Labels click event

Thank You for all answers. I found yet another option, in my opinion a little bit cleaner: void __fastcall TFormMain::Chart1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y) { TRect rect( Chart1->Axes->Left->Shape->ShapeBounds.Left, Chart1->Axes->Left->Shape->ShapeBoun...
by lukasz.walus
Thu Aug 07, 2025 10:22 am
Forum: VCL
Topic: Axis and Labels click event
Replies: 6
Views: 433

Re: Axis and Labels click event

This is only partial solution, bacause ClickAxis event is fired only when axis line is clicked, not labels or whole marked area.
by lukasz.walus
Thu Aug 07, 2025 9:17 am
Forum: VCL
Topic: Axis and Labels click event
Replies: 6
Views: 433

Axis and Labels click event

Hello.

How to catch event when axis or axis labels are clicked (labels back rectangle). Is there any way to calculate this area coordinates?
Zrzut ekranu 2025-08-07 111703.png
Zrzut ekranu 2025-08-07 111703.png (15.68 KiB) Viewed 432 times