Working with scrolling and zooming tchart in a C# app

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
anton dizhur
Newbie
Newbie
Posts: 6
Joined: Wed May 26, 2004 4:00 am
Location: New York

Working with scrolling and zooming tchart in a C# app

Post by anton dizhur » Tue Jun 15, 2004 8:45 pm

hello all,

my question is two-fold:

1. Zooming.

a.
Under properties for the TChart during edit mode:
Chart tab -> General tab -> Zoom tab -> "Allow" checkbox

it comes checked by default. i uncheck it, close properties dialog, reopen properties dialog "Allow" is checked once again. is there something forcing it to stay checked?

b.
ok, "Allow" stays checked, "Direction" = Both, "Mouse Button" = Left, "Pixels" = 16, "Animated" = unchecked. i run my application. i was under the impression this means dragging mouse with left button down over area > 16x16 pixels will zoom my chart (after i let go left mouse button since not animated). this doesn't happen. what gives?


-----------------------------------------------------------------------------------------

2. Scrolling.

Under properties for the TChart during edit mode:
Chart tab -> General tab -> Scroll tab

by default it's set to "Allow Scroll" = Both, "Mouse Button" = Right. if i change either of these 2, the changes seem to get registered (close, reopen properties - shows the changes i made). however, when i run my application, right-click + drag mouse still scrolls my chart in both directions regardless of what i have selected for "Allow Scroll" and "Mouse Button" options. is something resetting it during run time and / or is there something i can set during run time in my code to disable scrolling?


-----------------------------------------------------------------------------------------

=> my ultimate goal is to disallow right-click + drag = scrolling. any hack you can offer that achieves this is good enough for practical purposes, but the questions i was just wondering about for the future.

many thanx
anton

anton dizhur
Newbie
Newbie
Posts: 6
Joined: Wed May 26, 2004 4:00 am
Location: New York

found solution

Post by anton dizhur » Tue Jun 15, 2004 9:18 pm

problem at hand solved. found this in tutorial.chm

tChart1.Panning.Allow = ScrollModes.None;

this wasn't happening by setting the options during design mode though. and having it named .Panning. when everywhere else it's referred to as scrolling was cruel :(

Post Reply