LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I prevent a small panel from going behind a bigger one

From a full-screen panel I open a small panel (no child panel) and expect an input from the small panel.
Now. if I click somewhere on the big panel, the small one disappers.
Is there a control attribute, to fix the small panel in front until the expected input is made?
Thanks
Volker
0 Kudos
Message 1 of 3
(3,036 Views)
Display your small panel using InstallPopup() instead of DisplayPanel(). See the CVI help for InstallPopup: it displays the panel as a modal window so it's on top.
0 Kudos
Message 2 of 3
(3,028 Views)
You can also set the panel attribute to always float over other windows in the application. However, that means it won't just be floating over the parent window, but also over all of the other windows as well.

/*Set PANEL to float over other panels in the application when the app is active*/
SetPanelAttribute (PANEL, ATTR_FLOATING, VAL_FLOAT_APP_ACTIVE);
0 Kudos
Message 3 of 3
(3,024 Views)