LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Associating plot names with cursor movement

Hi All,
 
I am working with graphs and i need to display the plot names when the user double click some where on the plot.
Can see the plot name in the cursor palette.
 
But the user need to display the name of the plot near the cursor whenever he moves the cursor.
 
If we display the cursor name its not getting changed when moving from plot to plot.
 
Is there any other way to accomplish this?
 
Thanks in advance
 
0 Kudos
Message 1 of 6
(3,477 Views)
Hi user_1,
 
You can use an event structure to fire an event when the user clicks on the plot.
 

If we display the cursor name its not getting changed when moving from plot to plot.
This is due to the fact that the cursor name is independent of the plot name. You could use a property node to find which plot the cursore is on and use a second property node to change the name of the cursor. An example is shown below.


Message Edited by lion-o on 12-03-2007 03:40 AM
Message 2 of 6
(3,445 Views)

Hi

Thanks for the reply.


You can use an event structure to fire an event when the user clicks on the plot.

Is it possible to include an event which tracks the user's cdlick on the plot?

I have used event structure in my applications before.

But i am not aware of the fact that we can include events for graph components!!!!

0 Kudos
Message 3 of 6
(3,426 Views)
Hi user_1,
 
You can use an event structure and select the Waveform Graph: Mouse Down event. From the Event Data Node within the Event Structure, you can select "Mods.Double Click" to test whether a double-click occurred. You can also use the Coords data to test the coordinates in which the click occurred to ensure the click was within the plot region. An event will be fired for a mouse click anywhere on the control, and checking the coordinates against the Plot Bounds will ensure it was peformed within the plot region.
I hope this helps!


Message Edited by lion-o on 12-04-2007 04:29 PM
Message 4 of 6
(3,405 Views)

Thanks Mike for this information about the Mods.Double Click.  I had been looking for a double click event where I could have a special dialog box pop up in the event a user double clicked a control.  Another programmer had come up with a couple of complicated techniques using timing functions to see if multiple clicks had occurred in the same short period of time.  I think it even involved some Windows dll calls to find the current windows double click setting.  I had asked a couple other people I had met if they knew of a double click event and they hadn't.

With this tidbit of knowledge, I'll be able to implement my idea in some existing code without a whole lot of trouble.

Thanks.

0 Kudos
Message 5 of 6
(3,386 Views)

Thank u so much Mike.

Thanks for theinformative explanation

0 Kudos
Message 6 of 6
(3,364 Views)