pt_panelOn()
The function is used in conjunction with panel topology and opens a panel in a module.
Synopsis
pt_panelOn(string panelName, string sModuleName, int
iDirection);
Parameters
Parameter | Meaning |
---|---|
panelName | Name of the panel that will be opened |
sModuleName |
Name of the module in which the panel opens. If there is no module configured in the panel topology, the panel is opened in the mainModule, even if it is called from the infoModule or the naviModule. |
iDirection |
iDirection: 0 = home (main) 1 = backwards (left) 2 = forwards (right) 3 = upwards 4 = downwards -1 = show this panel in this panel (file name) -2 = show this panel in main module (node name) |
Return value
If the operation has been executed succesfully, the function returns 1 otherwise, 0.
Error
Missing or wrong parameter definitions.
Description
The function is used in conjunction with panel topology and opens a panel in a module.
EXAMPLE
Opens the panel "Pump".
main()
{
string panelName = "Pump";
string nam = "NewModul";
string sModuleName = pt_buildModuleName(nam,2);
int iDirection = -1;
pt_panelOn(panelName, sModuleName,iDirection);
}
Assignment
Availability
UI