Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TWinControl.CreateWnd

Creates the interface object (widget) and assigns the value in Handle.

Declaration

Source position: controls.pp line 2227

protected procedure TWinControl.CreateWnd; virtual;

Description

Raises a catchable debugger exception for various conditions, including:

Ensures that the realized bounds for the control is reset prior to creating the Handle for the control and any child Controls. An EInvalidOperation exception is raised if the handle for the Parent control is not valid when the method is called.

Calls the InvalidatePreferredSize method for the control, and any child controls, and calls AdjustSize. If an error occurred while creating the Handle, auto-sizing is not enabled for the control.

CreateWnd is called from the CreateHandle method.

See also

TWinControl.CreateHandle

  

Creates the Handle for the widget, if not already created.



CT Web help

CodeTyphon Studio