Jieun Posted October 2, 2007 Report Share Posted October 2, 2007 Hi. I'm using chartFX ver 6.2 in my project. (VC++ 6.0 environment) I want to change and drag the position of ConstantLine according to the mouse movement. The position means the point of X axis that I clicked on the chartFX. For example, there is a graph using ChartFX, and when I move mouse to the graph, I want to know the position of mouse same as general window programs. I think there would be any function dealing with above situations. Thanks, in advance. Please let me know. Quote Link to comment Share on other sites More sharing options...
Frank Posted October 2, 2007 Report Share Posted October 2, 2007 The MouseDown event provides you with the X,Y coordinates of the mouse. The PixelToValue method in the Axis object allows you to convert pixel values to logical Axis values which you can use to assign the the Constant Lines' value. Quote Link to comment Share on other sites More sharing options...
Jieun Posted October 3, 2007 Author Report Share Posted October 3, 2007 Thank you for your exact and kind answer. Thanks again. Have a nice day~ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.