Disable right click on Chart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
unicoders
Newbie
Newbie
Posts: 4
Joined: Tue Feb 27, 2007 12:00 am

Disable right click on Chart

Post by unicoders » Mon Sep 03, 2007 12:41 pm

Hi,

How can I disable the right-click drag?

Best regards,
Unicoders

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

Post by Narcís » Mon Sep 03, 2007 1:16 pm

Hi Unicoders,

You can try using this:

Code: Select all

                tChart.getPanning().setActive(false);
Or this:

Code: Select all

                tChart.getPanning().setAllow(ScrollMode.NONE);
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

unicoders
Newbie
Newbie
Posts: 4
Joined: Tue Feb 27, 2007 12:00 am

Thanks

Post by unicoders » Tue Sep 04, 2007 9:13 am

Thank you!
It worked perfectly.

BR,
Unicoders

Post Reply