Jump to content

Smaller cursor length on waveform graph


Recommended Posts

The cursors on the chart/graph/xy plot controls go to the extents.To get a line like in your pictures you would have to do something like a picture control underneath a graph with a clear background. The cursor line would be on the picture control. There would be a bit of math to draw the line and events to keep the two synchronized.

 

Tim

Link to comment

A couple of extra comments:

 

  1. You don't need a separate control. Graphs have a Plot Image property which allows you to draw custom images in the control itself. The control should also have a couple of methods for converting between the relevant coordinate systems.
  2. You can configure the cursor style itself to be just the crosshairs, but I assume that's too small for you.
  3. You could add another plot which is your line. I usually work with XY graphs, where this is easy. I'm not sure what the exact details would be for a waveform graph. You can use the cursor events to update the values of this plot.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.