LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Iconify event ?

Hello,
One small problem: I want my app (CVI6, NT4) to react when the main
window get iconified.
But it seems that no event are generated, not even a "left click" one.

As I need this functionnality quickly, I implement an async timer which
scan the window icony status.
Is there any simplier way ?
Thanks for any help,
--
Fred.
0 Kudos
Message 1 of 3
(2,814 Views)
I believe you are talking about when a panel is Minimized? If so, there isn't a CVI event for this. You have two options. You could have a timer callback that is calling GetPanelAttribute getting the "Window Zoom" attribute which would tell you if the panel is minimized. When it changes from VAL_NO_ZOOM to VAL_MINIMIZED, you know the window has been minimized.

You're other option would involved Windows SDK programming and capturing the Windows message that is sent to the window to minimize. This would more difficult to implement, so I would recommend the first method.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(2,814 Views)
The first method is what I already have implemented.
I just wanted to know if I've missed something in the events.
Thanks for your help Chris.


Chris Matthews a ecrit :

> I believe you are talking about when a panel is Minimized? If so,
> there isn't a CVI event for this. You have two options. You could
> have a timer callback that is calling GetPanelAttribute getting the
> "Window Zoom" attribute which would tell you if the panel is
> minimized. When it changes from VAL_NO_ZOOM to VAL_MINIMIZED, you
> know the window has been minimized.
>
> You're other option would involved Windows SDK programming and
> capturing the Windows message that is sent to the window to minimize.
> This would more difficult to implement, so I would recommend the first

> method.
>
> Best Regards,
>
> Chris Matthews
> National Instruments

--
F. Maillet - Sodatec Toulouse
Responsable Qualite Projets
0 Kudos
Message 3 of 3
(2,814 Views)