Page 1 of 1

incorrect (no) display of bezier series

Posted: Fri Apr 20, 2007 2:42 pm
by 9346813
When try to draw a 2D bezier, there is no line in the chart.
If switching to 3D, there is a 2D "border" line in the chart.

I need a correct display of a 2D bezier curve!

To demonstrate the false behaviour just take a look to the "Teechartgdiplus.exe", you can download (on 20th of april 2007) at steema site or just click this Link to Demo.

1. Extract and execute the Teechartgdiplus.exe file;
2. on coming up window click the edit button (the 7th button just right of "3D" button);
(the "Edting Chart1" window appears; Series1 is marked;)
4. press button "Change...";
5. on new "TeeChart Gallery" window press tab "Extended";
6. on panel "Extended" press "Bezier";
7. close "TeeChart Gallery" window by clicking on "OK" button;
8. close "Edting Chart1" window by clicking on "close" button;
9. now you see a 2D bezier curve, but it should be drawn as 3D; :shock:
10. click button "3D" to deactivate it and the curve vanishes; :shock:
11. click button "3D" again to reactivate the 2D curve, which should be the 3D one;
12. click radio button GDI+ and wonder about the displayed things :shock:

When you view the "Bezier" sample on the "Extended" tab panel on the "TeeChart Gallery" window, you see the same behaviour, if you toggle 3D.

How to fix this :?:

Posted: Tue Apr 24, 2007 11:23 am
by narcis
Hi AHS,

Thanks for your report. This is certainly a bug (TV52012181) which I have added to our defect list to be fixed for future releases.

In the meantime there are 2 solutions:

1. Change BezierStyle as this only happens with bsWindows, for example:

Code: Select all

  Series1.BezierStyle:=bsBezier3;
2. Set Bezier series pointer to 2D and chart's 3D percent to the minimum value possible:

Code: Select all

  Series1.Pointer.Draw3D:=false;
  Chart1.Chart3DPercent:=1;

Posted: Wed Apr 25, 2007 6:19 am
by 9346813
Addition:
The bsBezier4 style works for 2D mode too:

Code: Select all

Series1.BezierStyle:=bsBezier4;
:)