Jump to content
Software FX Community

Another Constant Line question

User (Legacy)

Recommended Posts


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


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


Link to comment
Share on other sites

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.



Software FX, Inc.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...