04-22-2019 06:11 AM
I've noticed a undesired action stemming from a file browse window. When the file browse window is open over the control area, it triggers an event for the background front panel control.
I attached a little demo .vi, which shows the behavior.
Is this an intended Labview action, and any ideas on avoiding it?
Solved! Go to Solution.
04-22-2019 08:22 AM
When you double-click on a file, that is directly over your array, the second mouse-down dismisses the file dialog, leaving your mouse pointer over the array with the button down. Thus the mouse-up from the second click gets captured by the array control.
Probably the best solution is to filter the mouse-up events, ignoring them if the control has not previously captured a mouse-down event.
04-22-2019 05:07 PM
Why do you need a mouse up event for the array?
It would be much more common to use a value change event on the array to determine if a button was pressed.
04-23-2019 06:05 AM
Normally, I would use a value change event, but I'm looking for _which_ button was pressed. Maybe there's a better easier way, but I'm using the coordinates to find which button.
I probably can rework it, but right now I'm under a deadline and have other aspects of this application to get finished.
04-23-2019 07:01 AM
Use the Old Value and New Value terminals on the nodes on the inside of the event case. Compare them for equality. Search the arrays for the first false. That gives you the button that was pressed.