09-22-2008 04:43 AM
I have tree question
Q1: I have seen a familiar disscusion on this topic earlier but this is not working the way I want.
I have a waveform graphic with pilar view. Where each pilar is one step on the xaxis. What i want is to use mousedown event to dynamicaly mark one or more pillars.
and in this event collect wich xaxis that has been marked.
I have tried this one inside a plotareaMouseDown event without success:
NationalInstruments.UI.XAxis x = new NationalInstruments.UI.XAxis();
x = waveformGraphSpectrum.GetXAxisAt(e.X, e.Y);
What to do??
Q2: Is it possible to make maximum lines on each pillar inside the waveformGrap?
Q3: How do I avoiding the xaxis to be displayd as decimal digits with the same width on the graph view
With regards
Leif Gunnar
10-17-2008 06:49 AM
Hi Leif Gunnar
If you want to retrieve the X and Y values that generated the event you should look at the following post:
http://forums.ni.com/ni/board/message?board.id=232&message.id=5899&requireLogin=False
To get the exact X values of the pillars you would probably have to round the X value to the closest pillar.
Best regards Øyvind Ø