activeChild

activeChild(): Form;

The activeChild method of the Form class returns a reference to the current active MDI child for an MDI frame form. If there is no active child or the calling form is not an MDI frame, the activeChild method returns null. One child form only can be active at any time for an MDI frame.

The code fragment in the following example shows the use of the activeChild method.

statusLine.caption := activeChild.name;