TChart > TChartListbox.GetIndexAtY() cannot find the correct item
- Lazarus/FPC Version: Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64
- Operating System: Win7
- CPU / Bitness: 64 (64 or 32 Bit?)
What happens
If I set at design time TChartListbox.Colums=2 and run the EXE with 6 series then the TChartListbox shows 6 entry's, with double click cant find the right items with TChartListbox.GetIndexAtY(), only the left item.
What did you expect
Please let the right items with TChartListbox.GetIndexAtY()
Steps to reproduce
TChartListbox.Colums=2 TChartListbox.ExtendedSelect=False TChartListbox.Options=[cloShowIcons]
Var i: Integer;
Begin
i := chrtList.GetIndexAtY(chrtList.ScreenToClient(Mouse.CursorPos).Y);
If i >= 0 Then
iSelID := Chart.Series[i].Tag;
end;
Start a programm with 6 series in a TChart and connected to TChartListbox