isPanelOpen()
The function returns whether a particular panel is open.
Synopsis
bool isPanelOpen(string panelname [,string moduleName]);
Parameters
Parameter | Description |
---|---|
panelname | Name of the panel |
moduleName | Name of the module |
Return value
true
if a panel is open, otherwise false
.
Error
Description
Without the optional parameter moduleName, isPanelOpen() checks whether the specified panel is open in its own module. Otherwise, isPanelOpen() checks whether the specified panel is open in the module moduleName.
Example
The following example checks whether the panel "Control 1" is open.
main()
{
if(isPanelOpen("Control 1")); // if open ...
}
Assignment
Administration of managers, modules and panelsAvailability
UI