Managing Your Panel Component
Sequence grabber components load, configure, and unload your panel component. As part of this process, the sequence grabber installs your panel's dialog items into the settings dialog box and may open your component's resource file. Panel components provide a number of functions that allow the sequence grabber to manage its relationship with panel components. This section discusses those functions.After opening a connection to your panel component, the sequence grabber identifies itself to your component by calling your
SGPanelSetGrabberfunction. The sequence grabber then tries to determine whether your component can work with its associated channel component by calling yourSGPanelCanRunfunction. The sequence grabber calls this function only if you have set thechannelFlagHasDependencycomponent flag to 1.Once the sequence grabber has determined that your panel component can work with its channel component, the sequence grabber may open your component's resource file (unless you have set the
channelFlagDontOpenResFilecomponent flag to 1). Once it has opened the resource file, it passes the file's reference number to you by calling yourSGPanelSetResFilefunction.Next, the sequence grabber prepares to add your component's items to the
settings dialog box. The sequence grabber obtains your item list by calling
yourSGPanelGetDITLfunction. Once it has installed the items, it calls yourSGPanelInstallfunction, giving you an opportunity to set initial values.Before the sequence grabber removes your items from the settings dialog box, it calls your
SGPanelRemovefunction.
Subtopics
- SGPanelSetGrabber
- SGPanelCanRun
- SGPanelSetResFile
- SGPanelGetDITL
- SGPanelInstall
- SGPanelRemove