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. )
how to make window form controls part of teechart
Re: how to make window form controls part of teechart
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:
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");
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: how to make window form controls part of teechart
great thanks !!!
Re: how to make window form controls part of teechart
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:
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";
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: how to make window form controls part of teechart
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
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.
Please, take a look at the Tutorial 13 - Custom drawing on the Chart Panel . You should find examples and tutorials at TeeChart programs group.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: how to make window form controls part of teechart
Thanks.. please let me know where exactly can i find this tutorial?
Re: how to make window form controls part of teechart
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |