Jump to content
Software FX Community

Another Constant Line question


User (Legacy)
 Share

Recommended Posts

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

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.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...