Programming with Pop-Up Panels

You use the following functions to control pop-up panels in a user interface:

InstallPopup displays and activates a panel as a dialog box. You must load a panel with LoadPanel or create the panel using NewPanel.

After a pop-up panel is installed, users can perform operations in LabWindows/CVI only on the pop-up panel.

Only the active pop-up panel can generate events (with the exception of EVENT_PANEL_MOVE, EVENT_PANEL_SIZE, and EVENT_CLOSE events from other panels). Use callback functions to process any kind of event or GetUserEvent to process only commit events. GetUserEvent returns the ID of the control that caused the event. GetUserEvent can operate in one of two ways.

RemovePopup removes either the active pop-up panel or all pop-up panels. RemovePopup does not unload the panel from memory.

SetSystemPopupsAttribute and GetSystemPopupSAttribute set and obtain the values of attributes that affect all of the pop-up panels. You use the following functions to access the predefined pop-up panels:

ConfirmPopup

DirSelectPopup

FileSelectPopup

FontSelectPopup

GenericMessagePopup

MessagePopup

MultiFileSelectPopup

PromptPopup

SetFontPopupDefaults

WaveformGraphPopup

XGraphPopup

XYGraphPopup

YGraphPopup

These functions handle the installation, user interaction with, and removal of the pop-up panels.