Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Drow a Grid/Text on AdvChartView

 Post Reply Post Reply
Author
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Topic: Drow a Grid/Text on AdvChartView
    Posted: 29 Jan 2016 at 2:44am
Hello,

I want to draw the chart and the grid .
It is easy to draw it on the form .
However , I want to print to PDF with vector line,
so I want to write a grid on the AdvChartView .
Is it possible?

best regards

Likes....

[Caution]
These are the pictures that I drew using the photoshop.

Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3567
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jan 2016 at 9:04am
Hi, 

You can draw the grid using the OnDrawChart

procedure TForm1.AdvChartView1DrawChart(Sender: TObject; ARect: TRect;
  ACanvas: TCanvas);
begin
  ACanvas.MoveTo(0, 0);
  ACanvas.LineTo(100, 100);
end;

Kind Regards, 
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2016 at 1:23am
I see,Thank you!It is a great feature!!
Then please teach me.

How to print it with chart?
I can not print a grid, The chart is not a problem.

by the way, I am using the following code.
  with printer do
  begin
    BeginDoc;
    AdvChartView1.PrintAllPanes(Printer.Canvas,Rect(0, 0, printer.PageWidth, printer.PageHeight));
    EndDoc;
  end;

best regards
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3567
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 2016 at 8:43am
You simply draw the grid on the printer canvas after printing the chart on the printer canvas.

Kind Regards, 
Pieter
Back to Top
Yokoe Hideo View Drop Down
New Member
New Member
Avatar

Joined: 29 Oct 2015
Posts: 19
Post Options Post Options   Quote Yokoe Hideo Quote  Post ReplyReply Direct Link To This Post Posted: 02 Feb 2016 at 5:15am
Thank you so much. I did it.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down