How can I associate a context menu to a DrawLine tool ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Srinivas Avancha
Newbie
Newbie
Posts: 41
Joined: Wed Jan 30, 2008 12:00 am

How can I associate a context menu to a DrawLine tool ?

Post by Srinivas Avancha » Thu Nov 13, 2008 7:15 pm

I would like the user to configure individual DrawLineItem properties using a context menu.

How can I associate a context menu to a DrawLine tool ?

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 Nov 14, 2008 8:43 am

Hi Srinivas,

You can use its Select event and display context menu related to selected line. A simple example:

Code: Select all

		void drawLine1_Select(Steema.TeeChart.Tools.DrawLine sender)
		{
			sender.Selected.Pen.Color = Color.Red;
		}
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