Working with scrolling and zooming tchart in a C# app
Posted: 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
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