Selection always selects in black color

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Selection always selects in black color

Post by Quant » Thu Jan 22, 2015 9:22 am

My chart background color is black and i used drawline tool to draw a white line on it.
In ActiveX version of teechart it is showing selection with white color.
But in .Net version it shows line selected with black color dots at the both ends of line.
that's why it mixes with background.
How i can achieve this in .Net version.

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

Re: Selection always selects in black color

Post by Narcís » Thu Jan 22, 2015 11:08 am

Hi Quant,

For this to work in .NET you need to set Panel.Color to black, for example:

Code: Select all

      tChart1.Panel.Color = Color.Black;
That makes handles being painted in Color.Silver.
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

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: Selection always selects in black color

Post by Quant » Fri Jan 23, 2015 4:05 am

It is strange but it worked.
thank you

Post Reply