IFormControl.MDIActive

Syntax

MDIActive: IFormControl;

Description

The MDIActive property determines the MDI child form that is active at the moment.

Example

Executing the example requires a form and a button named Button1 on it. This form is an MDI parent form that contains several child ones.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Begin

Self.MDIActive := Self.MDIChildren(0);

End Sub Button1OnClick;

After executing the example clicking the button activates the first child form.

See also:

IFormControl