LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I prevent a panel to lose focus?

Hi.
In my aplication when I dispay a second panel using the function InstallPopup, Cvi prevent the user to select the firs panel(the second panel is smaller than the first one).
When I use the function DisplayPanel, Cvi can't do the same thing.
My question is, how can I prevent to activate the first panel when the second one is active, whithout using function InstallPanel?

I hope that I explained clear enough my problem.

Thanks.
0 Kudos
Message 1 of 3
(3,330 Views)
Look at the ..\samples\apps\lockout\lockout.prj sample project that ships with CVI. It manipulates panel attributes to "lockout" other windows (to an extent) when the Lockout Windows checkbox is checked. You could also look at ATTR_FLOATING to make the panel floating (always on top).
You question was clear, but I don't understand your problem. Why not use IntallPopup? I think that's the best way.
0 Kudos
Message 2 of 3
(3,330 Views)
In addition to using the "lockout" example program as reference, you can as well try using the following commands:

To hide a panel:
SetPanelAttribute (handle, ATTR_VISIBLE, 0);

To disable a panel:
SetPanelAttribute (handle, ATTR_DIMMED, 1);

Both of the above commands will let you disable the first panel, but they will not be able to substitute the functionality of the InstallPopup, which disables the clicking on the parent panel.
0 Kudos
Message 3 of 3
(3,330 Views)