[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

NeedParentDesignControl

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

Declaration

Source position: forms.pp line 1861

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 specififed control.

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.