User (Legacy) Posted April 8, 2004 Report Share Posted April 8, 2004 Hello, I am using the ChartFX client server activex control in VC++. What I want to do is have a constant line that is movable by the mouse and the keyboard arrow keys. This is to recreate functionality we currently have in our program. What should happen is a user should be able to click a constant line and move it to another part of the plot, if the constant line is selected the same thing should happen on press of the left or right arrows. So what I really need to be able to do is trap the mouse over, mouse down, mouse up, and keyboard presses over the chart. Thanks for any help, Barry Hurt Senior Software Engineer SKF Reliability Systems www.skfcm.com Quote Link to comment Share on other sites More sharing options...
Software FX Posted April 9, 2004 Report Share Posted April 9, 2004 All these are events in the chart (MouseMoving, LButtonDown, LButtonUp, etc.). Please check docs. for details. The keyboard you can capture at the Form level by setting PrevieKeys=True. There is also functionality to translate Pixel Values (coming from the Mouse Events) into axis values (look for PixelToValue in the docs.) this will allow you to determine whether the mouse is close to a constant line or not. -- FP Software FX, Inc. 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.