LocateRecord with sorted series don't work

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jls
Newbie
Newbie
Posts: 19
Joined: Fri Jun 11, 2004 4:00 am

LocateRecord with sorted series don't work

Post by jls » Wed Jun 22, 2005 12:23 pm

If the series is sorted the

unit DBChart_LocateRecord

procedure TDBChartRecordLocate.DBChart1ClickSeries(Sender: TCustomChart;
Series: TChartSeries; ValueIndex: Integer; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
// Use the bookmarks to find the database record for the clicked point...
Table1.GotoBookmark(BookMarks[ValueIndex]);
end;


don't find the correct value

jls
Newbie
Newbie
Posts: 19
Joined: Fri Jun 11, 2004 4:00 am

I have uploaded some files showing the problem (locate reco)

Post by jls » Wed Jun 22, 2005 1:05 pm

The files are a part of the Features demo


Jørgen

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 30, 2005 9:48 am

Hi Jørgen,

I've already replied to your newsgroups message:

This is the expected behaviour as you ordered the series. For this to work
you should sort your table, database or grid in the same way you ordered the series or send the record number to your query.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply