Search found 45 matches

by Sam F
Wed Mar 28, 2012 11:32 pm
Forum: VCL
Topic: Overlapping marks for a line series
Replies: 3
Views: 8071

Re: Overlapping marks for a line series

Hi Yeray,

Thank you, that works for me. Much faster having the chart refresh not in the loop as well.

Sam.
by Sam F
Wed Mar 28, 2012 6:02 am
Forum: VCL
Topic: Overlapping marks for a line series
Replies: 3
Views: 8071

Overlapping marks for a line series

This is a recurring issue I see. I have attempted to implement the code as referenced at http://www.teechart.net/support/viewtopic.php?t=560. So, in my test project, I have this code: __fastcall TFormMain::TFormMain(TComponent* Owner) : TForm(Owner) { Chart1->AddSeries(new TLineSeries(Chart1)); Char...
by Sam F
Wed Feb 15, 2012 11:35 pm
Forum: VCL
Topic: TLegendPaletteTool exception
Replies: 1
Views: 4455

TLegendPaletteTool exception

I'm using C++Builder XE with TChart v2011.04.41118. Create a project with a chart. In the constructor put: TLegendPaletteTool* pLegendPalette = new TLegendPaletteTool(Chart1); pLegendPalette->ParentChart = Chart1; And of course include the header #include <TeeLegendPalette.hpp> Run the project. Clic...
by Sam F
Wed Feb 15, 2012 11:29 pm
Forum: VCL
Topic: OnSeriesMouseEnter falsely firing
Replies: 4
Views: 7514

Re: OnSeriesMouseEnter falsely firing

Yep, that seemed to fix it, thank you.
by Sam F
Fri Jan 27, 2012 4:29 am
Forum: VCL
Topic: OnSeriesMouseEnter falsely firing
Replies: 4
Views: 7514

Re: OnSeriesMouseEnter falsely firing

I'm using TChart v2011.03.30407 - so not very old.
I work with C++Builder® XE Version 15.0.3890.34076 .
by Sam F
Wed Jan 25, 2012 7:48 am
Forum: VCL
Topic: OnSeriesMouseEnter falsely firing
Replies: 4
Views: 7514

OnSeriesMouseEnter falsely firing

In your constructor have something like this: Chart1->AddSeries(new TLineSeries(Chart1)); Chart1->Series[0]->AddXY(1,1); Chart1->Series[0]->AddXY(2,2); Chart1->Series[0]->OnMouseEnter = OnSeriesMouseEnter; Chart1->BottomAxis->SetMinMax(0,10); Chart1->LeftAxis->SetMinMax(0,10); In the event put whate...
by Sam F
Fri Dec 02, 2011 2:36 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Re: Legend positioning / sizing

Ah, sorry, I was missing the -1. Now it works for me with no jitter.

Code: Select all

  int LegWidth = Chart1->Legend->Width;
  Chart1->Legend->Left = NewLeft;
  Chart1->Legend->ShapeBounds.Right = Chart1->Legend->Left + LegWidth - 1;
by Sam F
Fri Dec 02, 2011 2:31 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Re: Legend positioning / sizing

Actually, it hasn't entirely resolved my problem, but it seems to help. For some reason I still get jitter of a few pixels. Rather than chase that down I'm switching to a one-off setting of the legend left at the start of any real time updating session.
by Sam F
Fri Dec 02, 2011 1:08 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Re: Legend positioning / sizing

Thankyou Yeray. No problems reading delphi. Setting the ShapeBounds.Right property seems to be resolve my problems. I'll use the following code now whenever I want to set a legend left: int LegWidth = Chart1->Legend->Width; Chart1->Legend->Left = NewLeft; Chart1->Legend->ShapeBounds.Right = Chart1->...
by Sam F
Tue Nov 29, 2011 6:01 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Re: Legend positioning / sizing

So, I find if I set the left property, it effects the width property. Which is unfortunate, because I use the width property to set the left property - leading to the obvious potential of a feedback cycle. Calling the chart repaint or the legend repaint does not guarantee a valid width after setting...
by Sam F
Mon Nov 28, 2011 5:45 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Re: Legend positioning / sizing

Keep in mind that whatever manner it is calculating the legend width, it seems to breakable - it isn't actually '-12' at any point in time - in the example I used, it is flicking between displaying the information for one or two series. Perhaps it needs to resort to some cache value if certain other...
by Sam F
Fri Nov 25, 2011 2:32 am
Forum: VCL
Topic: Legend positioning / sizing
Replies: 8
Views: 14669

Legend positioning / sizing

Hi I'm trying to position a legend on the right. I've tried setting the alignment property so that I can specify via just setting the rightmost edge, but that doesn't seem to work. Is this a bug? So instead I've been trying to do something like: Chart1->Legend->Left = Chart1->Width - Chart1->Legend-...
by Sam F
Fri Nov 18, 2011 5:46 am
Forum: VCL
Topic: Help - drawing label arrows
Replies: 2
Views: 5801

Re: Help - drawing label arrows

I've ended up going with a second chart that uses the arrow series, with linked bottom axes and disappearing most of the background stuff. That seems to be good enough.
by Sam F
Thu Nov 17, 2011 6:20 am
Forum: VCL
Topic: Help - drawing label arrows
Replies: 2
Views: 5801

Help - drawing label arrows

I'm looking for a manner of drawing arrows pointing down at various positions along the top axis (outside of the data space), and not sure how to accomplish it. I've attached a picture of an example of what I'm trying to accomplish - it may involve more than one symbol type. The symbols are associat...
by Sam F
Thu Nov 10, 2011 12:45 am
Forum: VCL
Topic: TContourSeries - making art
Replies: 2
Views: 5484

Re: TContourSeries - making art

There is no meaning - it was an error for me to be trying to contour a constant value across the whole chart.
Nevertheless, I thought I'd report TChart's confusion on the matter.