how to make window form controls part of teechart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

how to make window form controls part of teechart

Post by Neelam » Wed Apr 14, 2010 11:11 am

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. )

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: how to make window form controls part of teechart

Post by Yeray » Wed Apr 14, 2010 3:28 pm

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");
        }   
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Re: how to make window form controls part of teechart

Post by Neelam » Thu Apr 15, 2010 5:45 am

great thanks :D !!!

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: how to make window form controls part of teechart

Post by Yeray » Thu Apr 15, 2010 8:24 am

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";
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Re: how to make window form controls part of teechart

Post by Neelam » Thu Apr 15, 2010 8:27 am

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?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: how to make window form controls part of teechart

Post by Yeray » Thu Apr 15, 2010 1:23 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Re: how to make window form controls part of teechart

Post by Neelam » Thu Apr 15, 2010 2:58 pm

Thanks.. please let me know where exactly can i find this tutorial?

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: how to make window form controls part of teechart

Post by Yeray » Thu Apr 15, 2010 3:08 pm

Hi shikha,

Something similar to what Narcís showed here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply