Sign in Join
FPDoc Onlineexperiment

TCustomForm.DefaultControl property

Member of TCustomFormpublicIn unit Forms

The control associated with the default action for this form.

Declaration

pascal
property DefaultControl: TControl read FDefaultControl write SetDefaultControl;

Description

This is typically a button such as 'Ok' or 'Accept' which is highlighted in some way on-screen to indicate that this is the default action. It is selected either by hitting 'Return' or 'Enter', or by clicking the control with the mouse.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.