Rounded corners & background

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
realize
Newbie
Newbie
Posts: 10
Joined: Fri Jul 22, 2005 4:00 am

Rounded corners & background

Post by realize » Fri May 12, 2006 1:35 pm

What property do I have to change to make the black background color white or transparent? (the rounded edges look funny with black)

Image

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

Post by Narcís » Fri May 12, 2006 1:44 pm

Hi realize,

You can try using:

Code: Select all

    TChart1.Panel.Color = vbWhite
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

realize
Newbie
Newbie
Posts: 10
Joined: Fri Jul 22, 2005 4:00 am

Post by realize » Fri May 12, 2006 1:54 pm

This is a .NET web project, so the code I used is:

Code: Select all

Tchart1.panel.Color = ColorTranslator.FromHtml("white")
The result is that the foreground color has changed, but not the background:

Image

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

Post by Narcís » Fri May 12, 2006 2:07 pm

Hi realize,

Are you using TeeChart Pro ActiveX or TeeChart for .NET for this project?
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

realize
Newbie
Newbie
Posts: 10
Joined: Fri Jul 22, 2005 4:00 am

Post by realize » Fri May 12, 2006 2:18 pm

Teechart for .NET 2 (TeeChartNET2.exe)

Ooops! :oops: Wrong forum :)

could you please relocate the thread?

Thanx!

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

Post by Narcís » Fri May 12, 2006 2:27 pm

Hi realize,

Don't worry, done! :wink:

You can see an example doing what you request at our ASP.NET on-line demo. The example can be found at List of Features\Interacting with Charts\Mouseover Hints\Modify Standard Mark Text. This demo source code is visible under the View C# Code link.

You also have a local copy of the demo at C:\Program Files\Steema Software\TeeChart for .NET v2\TeeChartForNET (default english installation path).
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

realize
Newbie
Newbie
Posts: 10
Joined: Fri Jul 22, 2005 4:00 am

Post by realize » Fri May 12, 2006 2:30 pm

What attribute / property should I be looking for?

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

Post by Narcís » Fri May 12, 2006 2:34 pm

Hi realize,

Look at the Chart Border section:

Code: Select all

         // Chart Border
         WebChart1.BackColor = Color.White;
         ch1.Panel.ImageBevel.Visible = false;
         ch1.Panel.ImageBevel.Pen.Visible = false;
         ch1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
         ch1.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
         ch1.Panel.BorderRound = 50;
         ch1.Panel.Pen.Visible = false;
         ch1.Panel.Shadow.Visible = false;
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

realize
Newbie
Newbie
Posts: 10
Joined: Fri Jul 22, 2005 4:00 am

BackColor

Post by realize » Fri May 12, 2006 3:17 pm

Hello again, and thanks a lot for your swift replies.

I had already set most of these options, and just set the ones I hadn't, but I can't seem to be able to find the backcolor property (or bgcolor for the matter) directly on the chart object.
And let me guess, it's the one that sets the color behind the panel :)

EDIT : Nevermind, just found it, it's a web form that I was talking about, and the property was to be set in the aspx file, and not in it's codebehind

Thanks a lot once again

Post Reply