A pop-up panel is a panel that pops up, accepts user input, and then disappears. Another term for pop-up panel is modal dialog box. You can stack pop-up panels, with each new pop-up panel appearing on top of the previous one. When a pop-up panel is active it appears in the foreground and is the only panel or pop-up you can operate.
The User Interface Library contains a collection of predefined pop-up panels for common operations, such as displaying a multi-line message, prompting the user for input, prompting the user for confirmation, selecting a file, and graphing numerical data.
Specific function calls invoke each predefined pop-up panel. The function displays the pop-up panel and waits for the user to select an action. Then the pop-up disappears and control returns to the program.
Operating the Message Pop-Up Panel
The message pop-up panel displays multiline messages. Use the newline character (\n) to start a new line of text. A sample message pop-up panel appears below.
Message Pop-Up Panel
Operating the Generic Message Pop-Up Panel
The generic message pop-up panel displays a pop-up panel with a message string, a response buffer, and up to three buttons with programmable labels. A sample generic message pop-up panel appears below.
Generic Message Pop-Up Panel
Operating the Prompt Pop-Up Panel
The prompt pop-up panel requests input from the user. A sample prompt pop-up panel appears below.
Prompt Pop-Up Panel
Operating the Confirm Pop-Up Panel
The confirm pop-up panel allows the user to confirm an action. A sample confirm pop-up panel appears below.
Confirm Pop-Up Panel
Operating the File Select Pop-Up Panel
The file select pop-up panel displays a list of files on disk from which the user can select. A file select pop-up panel appears below.
File Select Pop-Up Panel
Operating Graph Pop-Up Panels
You can choose from four different types of graph pop-up panels to display a graph of numerical data: X-graph pop-up, Y-graph pop-up, XY-graph pop-up, and Waveform graph pop-up. A sample graph pop-up panel appears in the figure below.
Graph Pop-Up Panel
In addition to these predefined pop-up panels, you can use InstallPopup to make any panel a pop-up panel.