procedure DestroyWidget; override;
Destroys the widget handle of the terminal component.
If a keyboard hook was properly installed by the CreateWidget procedure, DestroyWidget will remove it before destroying the widget handle associated with the terminal component.
See also: CreateWidget