Search found 11 matches

by Andrew
Thu Jun 28, 2007 8:21 am
Forum: VCL
Topic: how can I tell when a Repaint has finished?
Replies: 1
Views: 4669

how can I tell when a Repaint has finished?

I have a chart which I'm populating like this: Chart->AutoRepaint = false; for (many thousands of values) { lineseries->AddXY(x,y,"",clRed); } Chart->AutoRepaint = true; Chart->Repaint(); The problem is that the Repaint does not happen immediately. If I call Repaint(), and then immediatelly check th...
by Andrew
Wed Jun 27, 2007 5:05 am
Forum: VCL
Topic: problems with TNearestTool and TLineSeries
Replies: 2
Views: 7750

Awesome, that works perfectly. Thanks very much.
by Andrew
Tue Jun 26, 2007 8:51 am
Forum: VCL
Topic: problems with TNearestTool and TLineSeries
Replies: 2
Views: 7750

problems with TNearestTool and TLineSeries

Hi all, I'm trying to use the TNearestTool to work out the time (x value) of the point (on a TLineSeries) closest to the mouse. When the user clicks a button, a nearest tool is created: TNearestTool *nearTool = new TNearestTool(TrendChart); TrendChart->Tools->Add(nearTool); nearTool->LinePen->Color ...
by Andrew
Wed Feb 21, 2007 2:23 am
Forum: VCL
Topic: no grid lines when printing
Replies: 2
Views: 5835

Worked it out - it appears to be specific to particular printers (although the vast majority that I tested (HP) didn't work). I was on the right track with my workaround - changing axis Grid->Color to clBlack fixes the problem...I just needed to do it on my custom horizontal and vertical axes.
by Andrew
Wed Feb 21, 2007 1:36 am
Forum: VCL
Topic: TColorLine problem
Replies: 4
Views: 9083

Having trouble uploading files - here's the complete chunk of code that will demonstrate the problem. All that is required is a TChart object named TrendChart on a form, and put this in form's constructor: //Definitions double dblMin = 10; double dblMax = 30; double dblInterval = 1.0/24.0/20.0; //Ad...
by Andrew
Tue Feb 20, 2007 11:39 pm
Forum: VCL
Topic: TColorLine problem
Replies: 4
Views: 9083

The screenshot that I uploaded demonstrates the problem pretty clearly - if you set a TColorLineTool->Value property to a value that's outside of the vertical axis min/max, the ColorLine should not be visible...but it is. It appears in the whitespace above or below the chart grid area - this is what...
by Andrew
Tue Feb 20, 2007 5:58 am
Forum: VCL
Topic: TColorLine problem
Replies: 4
Views: 9083

TColorLine problem

Hi guys, I have a small problem with the TColorLineTool. If I create a TColorLineTool and set the value to 20, but show a trend where the vertical range is between 11 and 19, the colorline appears outside of the chart area. Don't know if I'm explaining it very well - I've uploaded a screenshot using...
by Andrew
Mon Feb 19, 2007 1:10 am
Forum: VCL
Topic: automatically adjusting the left margin on resize
Replies: 2
Views: 5372

Thanks, that did the trick (although I had to add a 'fudge factor' in order to get it to show the entire values)
by Andrew
Thu Feb 08, 2007 11:13 pm
Forum: VCL
Topic: automatically adjusting the left margin on resize
Replies: 2
Views: 5372

automatically adjusting the left margin on resize

Hello, I'm experiencing problems with the left axis values whenever I resize my teechart windows. If the values being plotted are reasonably large (in the thousands), the left axis values get chopped off when I resize the window. My Chart->LeftMargin is currently set to 5, and the margin units are p...
by Andrew
Wed Feb 07, 2007 4:57 am
Forum: VCL
Topic: no grid lines when printing
Replies: 2
Views: 5835

no grid lines when printing

Hello, I've got a problem where whenever I print a chart I don't get any grid lines. They're visible in the TChartPreviewer window, but they don't appear on the printout. I've tried changing the settings of the TChartPreviewer component - if I set cpoAsBitmap to true, then I do get grid lines...but ...
by Andrew
Tue May 11, 2004 2:08 am
Forum: VCL
Topic: TLineSeries and points
Replies: 1
Views: 6072

TLineSeries and points

Hello,

Is there any way to turn on points for just a few values, rather than the whole series? I want a certain section of my chart to stand out. Or how about changing the line type for a particular section of points?

Cheers

Andrew