In Windows programming, a window that is forced to be on top of other windows is called a modal window or dialog box. There are different types of modal windows. Some are modal only within the thread that created them. Some are modal across all threads within the application that created them. Some are modal across all applications.
The modality of a CVI window is limited to the thread in which it was created. That includes predefined popups like MessagePopup() and popup panels created by InstallPopup(). You can structure your threads so one thread handles all user interface functions and other threads do data acquisition or analysis, etc. See the CVI help article titled "Different Approaches to Multithreaded User Interface Programming". (From any CVI window,
goto Help >> Contents >> Search, then enter MODAL in the box titled Type in the word(s) to search for, then select the article title above).
Another option is to use the Windows SDK MessageBox function and specify the type as System Modal.
Add ...\CVI\sdk\lib\user32.lib to your project.
#include in your C file.
Call MessageBox like this.
int nMbReturn;
nMbReturn = MessageBox(NULL,
"Modal style is MB_APPLMODAL.\nThis window is on top the parent window in argument 1.",
"MB_APPLMODAL", MB_APPLMODAL);
nMbReturn = MessageBox(NULL,
"Modal style is MB_TASKMODAL.\nThis window is on top of top-level windows in this application.",
"MB_TASKMODAL", MB_TASKMODAL);
nMbReturn = MessageBox(NULL,
"Modal style is MB_SYSTEMMODAL.\nThis window is on top of all applications.",
"MB_SYSTEMMODAL", MB_SYSTEMMODAL);"