Query on Cursor and ScrollPager Tools

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
CVP99
Newbie
Newbie
Posts: 4
Joined: Tue Jun 09, 2015 12:00 am

Query on Cursor and ScrollPager Tools

Post by CVP99 » Fri Apr 01, 2016 10:59 am

Hi,
Just purchasing and testing the Pro Tools and I have a query on using the Cursor and ScrollPager Tools.

With the Cursor Tool, I have a vertical cursor set. I want the annotation callout to show the X-Axis value, which is a Date. The Series is built from an ADO SQL datasource. The main X-Axis shows the retrieved Date values correctly, but the Annotation on the Cursor never shows the X-Axis Value - it always starts at 30/12/1899 for the left most mark and increments by 1 day for each mark. The attached screenshot shows an example - you will see the X-Axis ranges from 15/05/2015 to 19/05/2015, but the Annotation shows 04/01/1900. How can I get the annotation to show the X-Axis date value?

With the ScrollPager, is there a simple way to prevent the ScrollPager from being Copied/Printed/Saved when using the TeeCommander buttons? I only want the ScrollPager to be seen on the terminal display and not saved, printed etc. Is there a way to to this?

Thanks
Clive
Attachments
Screen Shot 2016-04-01 at 11.29.24.png
CursorTool Annotation
Screen Shot 2016-04-01 at 11.29.24.png (135.65 KiB) Viewed 8304 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Query on Cursor and ScrollPager Tools

Post by Yeray » Mon Apr 04, 2016 10:21 am

Hello Clive,

Please, try to open different threads to report different issues from now on.

- Cursor Tool:
I've created a new TChart with a TLineSeries with pointer active and some datetime sample values; I've added a TCursorTool to the chart and activated its Annotation.
It seems to work fine for me here:
datetime_cursor.png
datetime_cursor.png (18.09 KiB) Viewed 8272 times
- ScrollPager Tool:
Have you tried to disable the ScrollPager Tool before copying the chart? Ie:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  ChartTool1.Active:=false;
  Chart1.CopyToClipboardBitmap;
  ChartTool1.Active:=true;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

CVP99
Newbie
Newbie
Posts: 4
Joined: Tue Jun 09, 2015 12:00 am

Re: Query on Cursor and ScrollPager Tools

Post by CVP99 » Wed Apr 06, 2016 10:47 am

Hi, thanks for the replies.

I still cannot get the Cursor tool to correctly display the Annotation as the Date value from the X-Axis.

Would it be possible for you to send me a copy of your sample project that you used to create the above image and hopefully I can figure out what is different in my chart setup.

Regards
Clive

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Query on Cursor and ScrollPager Tools

Post by Yeray » Wed Apr 06, 2016 11:43 am

Hi Clive,
CVP99 wrote:Would it be possible for you to send me a copy of your sample project that you used to create the above image and hopefully I can figure out what is different in my chart setup.
Of course. Here it is:
testDateTimeCursor.zip
(1.75 KiB) Downloaded 686 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

CVP99
Newbie
Newbie
Posts: 4
Joined: Tue Jun 09, 2015 12:00 am

Re: Query on Cursor and ScrollPager Tools

Post by CVP99 » Wed Apr 06, 2016 1:50 pm

Hi,

Thanks for the prompt reply.

I was setting XLabelsSource instead of XLabelsValues!

Thanks
Clive

Post Reply