Shadow color doesn't work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
dhait
Newbie
Newbie
Posts: 11
Joined: Tue Nov 15, 2005 5:00 am

Shadow color doesn't work

Post by dhait » Mon Jan 30, 2006 6:58 pm

Setting shadow comes up fine in designer, but not at runtime.

this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
this.tChart1.Panel.Shadow.Height = 5;
this.tChart1.Panel.Shadow.Width = 5;

how come?

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 Jan 31, 2006 9:35 am

Hi dhait,

You need to make panel shadow visible at run-time, the working code is:

Code: Select all

			this.tChart1.Panel.Shadow.Visible=true;
			this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); 
			this.tChart1.Panel.Shadow.Height = 5; 
			this.tChart1.Panel.Shadow.Width = 5; 
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