LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

child panel is never shown

Hi,
 
I am working with LabWindows/CVI 6.0 under Windows XP.
 
I would like to set "panel2" as a child panel to "panel1" and show both of them at program start on the screen. I defined both panels in one uir-file "test.uir". I call this code:
 
if ((panel1Handle = LoadPanel (0, "test.uir", PANEL1)) < 0)
    return -1;
 
if ((panel2Handle = LoadPanel (panel1Handle, "test.uir", PANEL2)) < 0)
    return -1;
 
DisplayPanel(panel1Handle);
DisplayPanel(panel2Handle);
 
However, "panel2" is not shown after executing this code, even if I call "SetActivePanel(panel2Handle)" after "DisplayPanel" it doesn't change its behaviour. What am I doing wrong? What do I have to do to show both panels?
 
Thanks in advance,
junimond
0 Kudos
Message 1 of 2
(2,983 Views)
junimond,
 
One possibility is that the panel is there, but is scrolled outside of the bounds of the parent panel. By default, the initial position of a panel, relative to its parent (or the screen, in the case of a top-level panel) is the same as it was in the User Interface Editor. Therefore, try to move the child panel closer to the top-left of the editor window, and see if it makes a difference. Another alternative is to check the "Auto Center" options in the Edit Panel dialog.
 
Luis
0 Kudos
Message 2 of 2
(2,969 Views)