LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag and drop and right clic on graph incompatible?

Solved!
Go to solution

Hi,

I found a little problem on the way that labview propose to manage the drag and drop on graph. When the algo of drag and drop is set, the right clic don't work on the first time. You can see this problem by yourself on the exemple given by Labview on "C:\Program Files\National Instruments\LabVIEW 2015\examples\Structures\Event Structure\Drag and Drop - Initiating a Custom Drag.vi". If someone have a way to avoid this problem that will be great.

 

0 Kudos
Message 1 of 4
(2,615 Views)
Solution
Accepted by topic author sklod

Hi,

if you to the handler of "Mouse Down" event you can add a condition to set the "Mouse Down?" boolean only when left button is clicked. Something like this:

 

asdf.JPG

In this case when you right click the program will not go into the "True" case of "Mouse Leave" handler and display the right click menu properly.

Message 2 of 4
(2,587 Views)

I didn't see that one.

Thanks a lot

0 Kudos
Message 3 of 4
(2,560 Views)

Glad I could help 🙂

0 Kudos
Message 4 of 4
(2,558 Views)