ChildPanelOnCentralModal()

Opens a modal child panel centered in the calling parent panel.

Synopsis

void ChildPanelOnCentralModal(string FileName, string PanelName, dyn_string Parameter);

Parameters

Parameter Meaning
FileName File name of the child panel that is opened
PanelName Name with which the panel is opened
Parameters List of the $ parameters that are passed to the child panel

Return Value

None.

Description

The function ChildPanelOnCentralModal() opens a modal child panel centered in the calling parent panel. Before the panel is opened a check is made as to whether this panel is already open (isPanelOpen()). The size ratio between child and parent panel is 1 (scale = 1). If the size of the parent panel is changed, the child panel is not scaled to the new size.

If the calculated coordinates for opening the panel result in invalid values. If the child panel for example is larger than the parent panel, initialization takes place with x = 0 and y = 0

A modal child panel is only modal for its own module.

For an example, see chapter ChildPanelOnCentralModalReturn(). ChildPanelOnCentralModal() works like ChildPanelOnCentralModalReturn but does not receive any return values from the child panel.

A child panel can not be resized. The only exception to this is the use of Layout Management in the child panel.

When a modal child panel is opened from a modal child panel, the opened child panel is modal application wise, ie. modal to the current UI.

Assignment

panel.ctl

Availability

Window functions

See also

all other ChildPanel...() functions