getChildCentralPosition()
The function returns the central position of a child panel in a root panel.
Synopsis
dyn_int getChildCentralPosition(string child, string parent)
Parameters
| Parameter | Description | 
|---|---|
| child | Name of the childpanel | 
| parent | Name of the rootpanel | 
Return value
The central position of the childpanel: dyn_int: dr[1]==xPos; dr[2]==yPos,
Error
Description
The function returns the central position of a childpanel in a root panel. The first value of the result is the x position and the second value is the y position ( dyn_int: dr[1]==xPos; dr[2]==yPos).
 Example
Example
main()
{
  EP_childPanelOn();
}
EP_childPanelOn()
{
  dyn_int dr;
  dr = getChildCentralPosition("child.pnl", myPanelName());
  // checking the position
  DebugN(dr); // [dyn_int 2 items 1:227 2:20 ]
  ChildPanelOn ("child.pnl","child1",makeDynString(),dr [1],dr
  [2]);
  // opens childpanel on checked position
}Assignment
panel.ctl
Availability
UI
