ptms_LoadOneBasePanel()

If two base panels are started on two monitors and the base panel will be closed on one of the monitors, the function ptms_LoadOneBasePanel can be used to reopen the base panel on this monitor.

Synopsis

void ptms_LoadOneBasePanel(int iScreenNr, int x, int y, int iWidth, int iHeight, char cScreen, string strBasepanel, string strTemplate, int iNode =0);

Parameters

Parameter Description
iScreenNr Number of the monitor.
x The X position of the panel to be opened.
y The Y position of the panel to be opened.
iWidth The width of the panel to be opened. This should be 1024 or 1600.
iHeight The height of the panel to be opened.
CScreen The monitor description (character) set in front of the panel modules (A, B, C or D).
strBasepanel What base panel should be opened.
strTemplate What default template should be opened.
iNode

Load this top node into the mainModule.

iNode is the node from the panel topology tree:

0 is the start node - the start panel

1 is the first node in the panel topology.

Return value

-

Error

Missing or wrong arguments.

Description

If two base panels are started on two monitors and the base panel will be closed on one of the monitors, the function ptms_LoadOneBasePanel can be used to reopen the base panel on this monitor. You can call the function on the monitor where the panel remains open and reopen the panel on the other monitor without restarting the UI.

EXAMPLE

Opens the base panel on the second monitor after you have closed the base panel on it. Execute this code on the first monitor to reopen the base panel on the second monitor.

main()
{
  int t=2;
  ptms_LoadOneBasePanel(t,XPosition[t], YPosition[t],
  Width[t],Height[t],Displays[t],Basepanels[t],TemplateName);
}

Assignment

Availability

UI