Search found 5 matches

by SAR
Fri Feb 17, 2006 5:19 pm
Forum: VCL
Topic: Draw Text outside Chart (custom legend)
Replies: 9
Views: 9384

Narcis, Thanks for all your help - I really appreciate it. Unfortunately, I cannot find enough documentation regarding TPreviewPanel to have much idea of how it works or fits into the TeeChart picture (I have only a vague idea of what it is from the one sentence description in the user/ref docs). Th...
by SAR
Wed Feb 15, 2006 5:14 pm
Forum: VCL
Topic: Draw Text outside Chart (custom legend)
Replies: 9
Views: 9384

Narcis, Thanks for this code. It points me in a direction that looks promising. However, as it stands the results are not WYSIWYG - what shows properly on the screen prints completely differently - the text box winds up in the midst of the chart. What other tricks are needed...? Another more minor i...
by SAR
Tue Feb 14, 2006 7:31 pm
Forum: VCL
Topic: Draw Text outside Chart (custom legend)
Replies: 9
Views: 9384

>> Yes, I assumed you added a TRectangleTool to the chart using the chart editor. Regarding the error, does it happen in the OnAfterDraw event? Which TeeChart version are you using? The error does occur in the OnAfterDraw event. I could not find the way to add a TRectangleTool from the chart editor ...
by SAR
Mon Feb 13, 2006 6:55 pm
Forum: VCL
Topic: Draw Text outside Chart (custom legend)
Replies: 9
Views: 9384

Narcís, This code sample isn't working for me. I assumed that ChartTool1 is created somewhere using TRectangleTool.Create, and added a line to do that (ChartTool1 := TRectangleTool.Create(self) ). That seems to work, but when I try to execute the first line of the event code, it crashes immediately ...
by SAR
Fri Feb 10, 2006 5:45 pm
Forum: VCL
Topic: Draw Text outside Chart (custom legend)
Replies: 9
Views: 9384

Draw Text outside Chart (custom legend)

I need to draw my own text (in a box would be nice) outside the chart boundaries to show additional notes about the data in the chart. It needs to print WYSIWYG. I have been looking at lots of demos and searching help, and experimenting with various methods in my own code but I cannot figure out how...