Drawing a backgroud

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
vadimm
Newbie
Newbie
Posts: 6
Joined: Wed Aug 03, 2005 4:00 am

Drawing a backgroud

Post by vadimm » Mon Feb 13, 2006 5:41 pm

Hello.
There are 2 questions:
1. If we set Drawing.ImageMode = normal then Tchart.Walls.Back picture isn't drawn at all! Why?
2. How can we draw a picture that fills exactly back part of the Tchart( starting X=0, Y=0 )?
Tchart.Walls.Back is really drawn from X=0, Y=0 BUT left and bottom part of a picture is trimmed.
Are there any solutions to the problems?

Thanks!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Feb 14, 2006 9:23 am

Hello,

Please find below the answers to your questions:

1. I'm not able to reproduce the problem here. Which TeeChart version are you using? Could you please send some code or an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

2. You can try using:

Code: Select all

	tChart1.Panel.ImageMode=Steema.TeeChart.Drawing.ImageMode.Stretch;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

vadimm
Newbie
Newbie
Posts: 6
Joined: Wed Aug 03, 2005 4:00 am

Post by vadimm » Wed Feb 15, 2006 4:31 pm

Just added the example.
Subject of the post: "Tchart problems."

Thanks.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Feb 16, 2006 2:55 pm

Hi vadimm,

Thanks for the example. This is certainly a defect and already added it to our bug list (TF02011257) to be fixed for future releases. In the meantime, you'll have to use TeeChart's panel image as shown here:

Code: Select all

        public void Draw(Steema.TeeChart.Drawing.ImageMode Mode,bool with3D)
        {
            Steema.TeeChart.TChart Handle = new Steema.TeeChart.TChart();
            Handle.Axes.Left.AxisPen.Color = System.Drawing.Color.Red;
            Handle.Axes.Bottom.AxisPen.Color = System.Drawing.Color.Red;
            Handle.Axes.Right.AxisPen.Color = System.Drawing.Color.Red;
                        
            Handle.Legend.Visible = false;

            //
            Handle.Aspect.View3D = with3D;
            //

			Handle.Panel.Image = System.Drawing.Image.FromFile("image.bmp");
			Handle.Panel.ImageTransparent = false;
			Handle.Panel.Visible = true;
			Handle.Panel.Transparent = false;
			Handle.Panel.ImageMode = Mode;
            
            Handle.Dock = System.Windows.Forms.DockStyle.Fill;

            this.Controls.Add(Handle);
            this.Show();
        }
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply