LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InstallPopup

Hi,
 
Using:
LabWindows 8.0
Windows XP SP2
 
I am using extended desktop support in windows and have dual monitors setup.
 
When I call InstallPopup to display a panel in my program it loads on the second monitor.
This problem only occurs for one of the panels I load.  All of the other panels load on the main monitor.
 
 //load all panels
 if ((g_LoginHandle = LoadPanel (0, "IDAG_GUI.uir", P_LOGIN)) < 0)
  return -1;
 if ((g_DisplayContainerHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_DISPLAY)) < 0)
  return -1;
 if ((g_EditContainerInfoHandle = LoadPanel (g_DisplayContainerHandle,
  "IDAG_GUI.uir", P_CONTINFO)) < 0)
  return -1;
 if ((g_SplashHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_SPLASH)) < 0)
  return -1;
 if ((g_ListOfListHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_LOFL)) < 0)
  return -1;
 if ((g_SearchHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_SEARCH)) < 0)
  return -1;
 if ((g_EditCmtHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_EDITCMT)) < 0)
  return -1;
 if ((g_EditCmtMemoHandle = LoadPanel (0,
  "IDAG_GUI.uir", P_CMTMEMO)) < 0)
  return -1;
 if ((g_NewNodeHandle = LoadPanel(0,
  "IDAG_GUI.uir", P_NEWNODE)) < 0)
  return -1;
 
code for display:
 
   DisplayPanel(g_NewNodeHandle);
   SetPanelPos(g_NewNodeHandle, VAL_AUTO_CENTER, VAL_AUTO_CENTER);
 
Question 2: Is it possible to load a modal dialogue box using InstallPopup for a panel that is a child panel?
 
 
Thanks for the help,
Garth
 
0 Kudos
Message 1 of 2
(2,705 Views)
Hi Garth,

I have seen this behavior before and I haven't been able to duplicate it either.  Is it possible for you to post your example project that displays this behavior, so I can test it on my machine?

As for your second question, yes, you can use InstallPopup as a modal dialog for a child panel.  Here's example code to do that.

if ((panelHandle = LoadPanel (0, "MainPanel.uir", PANEL)) < 0)
        return -1;
if ((childPanelHandle = LoadPanel (panelHandle, "MainPanel.uir", CHILDPANEL)) < 0)
        return -1;
HidePanel (childPanelHandle);
0 Kudos
Message 2 of 2
(2,664 Views)