Page 1 of 1

Problem with ColorLine.Value

Posted: Wed Oct 22, 2008 1:07 pm
by 13049199
Hello!

I have another problem, this time with ColorLine.Value property.
I'm trying to scroll chart and set ColorLine.Value property in procedural code.

the problem is ColorLine position on chart is not that one I set. Attach. (on news group) ilustates my problem. To reproduce it try this sequence:
- fire project :)
- click Big button bellow chart (ColorLine should be on center of chart)
- move mouse over chart (to generate MouseEnter event - i suppose)
at last step ColorLine will be move where i want to set it...

is any way to force in procedural code this change?

Im using TeeChart.WPF from
TeeChart.NET version 3
Release Notes 23rd September 2008
TeeChart.NET version 3
Build 3.5.3188.18562
installation

Posted: Wed Oct 22, 2008 1:28 pm
by narcis
Hi AgileSoft s.c.,

Thanks for the example project but I still don't understand which is the exact problem you have. Could you please give us some more details? It may also help if you attach an image of the chart you get.

Thanks in advance.

Posted: Wed Oct 22, 2008 1:37 pm
by 13049199
sample project "as-is" was posted on new group
- Button.Click event service changes ColorLine position on chart by setting Value property.
efect of this change is visible after you hover mouse over chart component, but not immediately (in event service code).

to make change visible immediately I need some refresh?

ps. is hard to show it on images.. movie is good option :P

Posted: Wed Oct 22, 2008 1:46 pm
by narcis
Hi AgileSoft s.c.,

Thanks for the information.

CursorTool's position is automatically refreshed when running button's code for me here. I'm using our current TeeChart.WPF sources so you may expect this to work fine in next maintenance release.

In the meantime you can try calling chart's Invalidate method after setting cursor's value.