
Index
From: Narcís Calvet Steema Software
Subject: Re: preview mark tips
Date: Thu, 22 Nov 2007 11:15:00 +0100
Newsgroup: steema.public.teechart7.activex
Hello,
Please find below the answers to your questions:
1. You could try setting an empty string ("") in the OnGetSeriesMark event
for those marks you don't want to be displayed. However they may be even
printed. You should try generating the application .exe and running it. This
is where you'll obtain the definitive results.
2. Yes, this is possible. You should do somethings as in the "All
Features\Welcome!\Printing\Multiple Charts" example in the features demo,
available at TeeChart's program group.
3. You should do something as in the TeeChart VCL demo below. This demo
doesn't exist in TeeChart ActiveX. However the same should be possible once
you know how to create a Bitmap in Visual Basic.
procedure TFourChartsForm.Button1Click(Sender: TObject);
var tmpH,tmpW : Integer;
begin
{ This code creates and stores a new BITMAP file
which contains the FOUR charts.
It asks previously the end user for the BMP filename
where to save the bitmap.
}
with SaveDialog1 do
begin
if Execute then
With TBitmap.Create do
try
{ calculate bitmap size (2x2) }
tmpW:=Chart1.Width;
tmpH:=Chart1.Height;
Width := 2*tmpW;
Height:= 2*tmpH;
{ draw chart 1 }
Chart1.BufferedDisplay:=False;
Chart1.Draw(Canvas,Rect(0,0,tmpW,tmpH));
Chart1.BufferedDisplay:=True;
{ draw chart 2 }
Chart2.BufferedDisplay:=False;
Chart2.Draw(Canvas,Rect(0,tmpH+1,tmpW,2*tmpH));
Chart2.BufferedDisplay:=True;
{ draw chart 3 }
Chart3.BufferedDisplay:=False;
Chart3.Draw(Canvas,Rect(tmpW+1,0,2*tmpW,tmpH));
Chart3.BufferedDisplay:=True;
{ draw chart 4 }
Chart4.BufferedDisplay:=False;
Chart4.Draw(Canvas,Rect(tmpW+1,tmpH+1,2*tmpW,2*tmpH));
Chart4.BufferedDisplay:=True;
SaveToFile(FileName);
finally
Free;
end;
end;
end;
--
Best Regards,
Narcis Calvet
Steema Support Central
http://support.steema.com
"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."
"Al" wrote in message
news:AqOUXMrKIHA.3392@TEEPC.Steema.local...
> hello,
>
> thank you for your help and advice.
>
> 1) when I try to print preview the chart, I either see all mark tips for
> all ticks, or see none (marktips.visible=false). Is there a way to print
> preview the mark tips I've added at TChart1_OnGetSeriesMark() event?
>
> 2) Is it possible to print preview two charts (price & volume) at one
> time?
>
> 3) Though a VB question, is it possible to copy two charts at one time?
>
> thank you for your help once again.
>
> best regards,
>
>