LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Floating ranking

Hello,
 
i'm using two panels, the first panel is the mainpanel and the child panel is used only sometimes. The mainpanel should be always in front so i used "floating style: always" for this panel. When the child panel is displayed, the child panel has to be always in front of my mainpanel. How can i realise this. I'm using LabWindow/CVI 6.0.
 
Greetings Paco
0 Kudos
Message 1 of 2
(2,559 Views)
If the second panel is a true "child" of the first one, there is no problem in keeping it always visible: it will remain visible inside the parent panel as long as you don't hide it.
To load a panel as a child of another, you must pass the handle of the parent panel as the first parameter to LoadPanel, this way:
 
childPanelHandle = LoadPanel (parentPanelHandle, "myFile.uir", theChildPanel);
DisplayPanel (childPanelHandle);
 
The panel will be displayed "inside" the parent panel (i.e. it will be possible to move it but it will remain confined to the area of the parent panel).
 
 
On the contrary, if your second panel is really a top-level panel I'm afraid there is no way to put on top of the first panel if this one is declared to be "always on top".


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,554 Views)