LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to check if a panel is temporary available

Hallo everybody,

I have to check if a panel is available. I want to control a loop. He has to run if the panel is available and is not yet closed.
How can I check this?

Thanks.
Florian
0 Kudos
Message 1 of 5
(3,444 Views)

How about:

 GetPanelAttribute (panel, ATTR_VISIBLE, &status);

This sets status to a 1 if the panel is visible.

JR

0 Kudos
Message 2 of 5
(3,437 Views)
I saw "available" was misunderstood. I meant "exists". You could close the panel, and if it is almost close, the function didn't has to.

>>>   GetPanelAttribute (panel, ATTR_VISIBLE, &status);
>>>   You can't get an information from "nothing"
0 Kudos
Message 3 of 5
(3,430 Views)

OK have you thought of using a panel callback function and working with the EVENT_CLOSE case to let your program know that the panel no longer exists?

JR

0 Kudos
Message 4 of 5
(3,427 Views)
Oh that's an idea, I didn't thought. Yes of course, this will work. Thanks
0 Kudos
Message 5 of 5
(3,424 Views)