11-19-2013 06:42 PM
I'm currently using LV2012, so I'm not sure if this is an issue that's been fixed in 2013, but here goes:
I've implemented a small amount of drag-and-drop functionality in my current project. I'm using the "Drag Over" event to update the cursor dynamically, depending on where the drag is and which modifiers are active. I'm using the "Button" parameter to tell me which mouse button is pressed - at least, it works OK for the Drag Start event.
I've noticed, however, that the Button parameter is always 0 for both the "Drag Over" and "Drop" events. Surely, it should be 1 for a left button, 2 for a right-button and 3 for the middle button (or left and right together) as per the "Mouse Down" event?
Has anybody else noticed this behaviour? Is it different for LV2013?
Regards,
Geoff
11-20-2013 11:18 PM
Hi Geoff,
Is there anyway that you could post the code that you are working with or a simplified version to see what you are working with?
Thanks!
11-21-2013 12:45 AM
Sure Stephanie,
Attached is a VI I threw together to illustrate the issue. My code (deliberately) doesn't try to handle the drop properly, it just illustrates the lack of button change.
Note that my main project code implements the workaround of using a shift register to store the original button value (and then the drag data cluster to store it for final use).
Regards,
Geoff
11-22-2013 10:32 AM
Hi Geoff,
Thank you for adding your code. This does look like unexpected behavior and I am going to check in to it on our end. I will let you know if I find out anything!
Thanks!