LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect Front Panel move event

Unfortunately LabVIEW does not have an event based way of handling this. There are several ways to approach this but the easiest way that I see would be to use the Pane >>Mouse Up event.

 

On mouse up you could get the Panes bounds/position, compare it to its last bounds/position (via a shift register or functional global), and update if changed.

 

Now I understand that Pane>>Mouse Up events happen even when you are not moving the actual VI around the screen but at least this would be an event based way to approach the problem instead of getting into the WinAPI.

 

Craig

0 Kudos
Message 11 of 12
(1,092 Views)

I was looking for the same exact feature, but so far haven't found a way to detect window dragging or selection by the user. The fact is that the Pane>>Mouse events are only reporting on events occuring within the pane, which the title bar and border (if there are any) are apparently not considered part of. Therefore clicks in those regions go unreported. It is a bit annoying, to say the least. I am wondering whether this has been discussed in the LV Exchange forum...

0 Kudos
Message 12 of 12
(1,044 Views)