sReason | (String) Panel closing procedure identifier. This value is transmitted into the pEvent.Reason parameter of the PmgRoot.onPanelStopEnd event.
This can be used, for example, if the panel is open as modal window (see How to work with modal windows). If the modal panel is closed by the "OK" button, the PmgRoot.Close method sets the sReason parameter to, for example, "ok". In the PmgRoot.onPanelStopEnd event it is possible to test this value and the correctly fill in the value PmgRoot.ReturnValue. In this function, this identifier is available in the ev.CloseReason parameter. |
---|
pMe.Root.Close("ok");