Sign in Join
FPDoc Onlineexperiment

NeedParentDesignControl function

In unit Forms

Ensures that a TCustomDesignControl instance is found for the specified control.

Declaration

pascal
function NeedParentDesignControl(Control: TControl)
: TCustomDesignControl

Description

Calls GetParentDesignControl to get the return value for the function. Raises an EInvalidOperation exception if a TCustomDesignControl instance is not found for the specified control.

Used in methods which perform scaling operations for TCustomForm or TControl instances.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.