Hallo everybody, I'm using LabWindows/CVI 6.0
I trie to display in my main function the normal PANEL and a STARTPOPUP-panel as a popup, but it do not work.
It shows me the PANEL and load the popup I think, because I cannot use the PANEL, it is dimmed. But the POPUP-PANEL is not displayed.
What's wrong?
int main (int argc, char *argv[])
{
if (InitCVIRTE (0, argv, 0) == 0)
return -1;
if ((panelHandle = LoadPanel(0, "test.uir", PANEL))<0)
return -1;
Display(panelHandle);
popup = LoadPanel(0, "test.uir", STARTPOPUP);
InstallPopup(popup);
RunUserInterface();
DiscardPanel(panelHandle);
return 0;
}
Should I have to it this way?
This way it works, but than the PANEL is started as Popup. Are there some difficulties in using than?
int main (...)
{
...
panel = LoadPanel(0, "test.uir", STARTPOPUP);
InstallPopup(panel);
RunUserInterface();
return 0;
}
int CVICALLBACK OK_BUTTON_ON_POPUPPANEL (...)
{
DiscardPanel(panel);
panelHandle = LoadPanel(0, "test.uir", PANEL);
InstallPopup(panelHandle);
return 0;
}
Thanks for helping.
Florian