Port from VCL to .NET now Shape is not visible

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Estechco
Newbie
Newbie
Posts: 2
Joined: Fri Dec 14, 2007 12:00 am
Location: UK

Port from VCL to .NET now Shape is not visible

Post by Estechco » Mon Apr 20, 2009 3:56 pm

I am in the process of porting some code from VCL over to .NET and most of this has worked pretty easily.

However, I have one graph where I previously used a TChartShape to place text in certain strategic places. The port of this code also went smoothly changing TChartShape from simply "Shape", however, I cannot seem to get any kind of shape to appear within my .NET graph. If I set "ShowInLegend" to true then i can see that the Shape exists and has the correct colour/title etc, but nothing appears anywhere within my axes.

Is there any additional steps that are required in .NET that wouldn't have been necessary in VCL?

Here is a simplification of the steps I am taking...

with Shape1 do
begin
SeriesColor := Color.Gray;
Transparent := false;
ShowInLegend := true;
Pen.Visible := true;
Font.Color := SeriesColor;
Font.Size := 10;
Font.Shadow.Color := SeriesColor;
Font.Shadow.HorizSize := 10;
Font.Shadow.VertSize := 10;
SomeTxt[0] := 'Some text';
Text := SomeTxt[0];
end;
...
Shape1.Add(0,60);
Shape1.Add(60,100);
Shape1.Chart := ch1;

Estechco
Newbie
Newbie
Posts: 2
Joined: Fri Dec 14, 2007 12:00 am
Location: UK

Post by Estechco » Mon Apr 20, 2009 4:24 pm

Ignore me...everything seems to have suddenly kicked in correctly.

I had just upgraded to the latest version, but initial inspection suggested that this hadn't helped.

Perhaps the cache needed refreshing

Post Reply