Page 1 of 1
how to make window form controls part of teechart
Posted: Wed Apr 14, 2010 11:11 am
by 13045482
Hi
I have a teechart and i want that the shown component in the attchment uploaded " screenshot_.doc " should become part of teechart. Please guide how it can be done.(I think Using custom legend wont really help as i am showing different series in the chart, if you think it can help please guide. )
Re: how to make window form controls part of teechart
Posted: Wed Apr 14, 2010 3:28 pm
by yeray
Hi shikha,
If you don't want to use the chart legend, or you can't, I'm afraid you should draw it manually using canvas techniques:
Code: Select all
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.Rectangle(100, 100, 170, 130);
g.Brush.Color = Color.Black;
g.Ellipse(103, 103, 111, 111);
g.TextOut(120, 100, "Text 1");
}
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 5:45 am
by 13045482
great thanks
!!!
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 8:24 am
by yeray
Hi shikha,
I could missunderstand your picture. Maybe setting your component parent to be the Chart, it could be enough. Something like creating a label over the chart:
Code: Select all
Label label1 = new Label();
label1.Parent = tChart1;
label1.Text = "my runtime label";
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 8:27 am
by 13045482
The solution you earlier gave worked.. but i will also try this one.. thanks..Just one Question- do we have any help/tutorial available for Steema.TeeChart.Drawing.Graphics3D controls line ellipse,rectangle etc. if yes please let me know where. Also do we have any rectangle control where we can show text as shown in uploaded attachment- legend" text in rectanle ( but not inside it). Also what are RectangleF,RectangleY,RectangleZ ,Rectcenter and when are they used?
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 1:23 pm
by yeray
Hi shikha,
Please, take a look at the Tutorial 13 - Custom drawing on the Chart Panel . You should find examples and tutorials at TeeChart programs group.
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 2:58 pm
by 13045482
Thanks.. please let me know where exactly can i find this tutorial?
Re: how to make window form controls part of teechart
Posted: Thu Apr 15, 2010 3:08 pm
by yeray
Hi shikha,
Something similar to what NarcĂs showed
here.