Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

display Image close callback

Hi,

I want to execute some code when a user close an imaq display window. Is there a way to attach a callback to this type of window under labwindowsCVI.

Thanks

ArnO
0 Kudos
Message 1 of 2
(2,949 Views)
If you have IMAQ Vision then you can use the imaqGetLastEvent method, which returns the last event that the user performed on an image window. One of the parameters for this method is WindowEventType, which you can specify as IMAQ_CLOSE_EVENT to determine if a user closed a window.

I hope this helps. Best wishes!

Regards,
Dawna P.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,949 Views)