TScreen.MoveFormToFocusFront procedure
Moves the specified form to the front of all other forms.
Declaration
procedure MoveFormToFocusFront(ACustomForm: TCustomForm)Description
MoveFormToFocusFront is a method used to move the form specified
in
ACustomForm to the top of the Z-order. This means that it
appears on top of all other visible forms for the application.
MoveFormToFocusFront is called when the focused control is changed in the
TCustomForm instance. It is also called from the
ShowModal method in TCustomForm.
It ensures that ACustomForm is moved to the first position in
CustomForms (the top of the Z-order). When ACustomForm is a
TForm instance, it is also moved to the first position in the
Forms property. Calls MoveFormToZFront to ensure that
the form is moved to the first position in the CustomFormsZOrdered
property.
Errors
Raises a catchable GDB exception if the form or screen classes are being destroyed, or when ACustomForm is not assigned or not present in the CustomForms property.
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
