Vcl.Forms.TCustomForm.WantChildKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function WantChildKey(Child: TControl; var Message: TMessage): Boolean; virtual;

C++

virtual bool __fastcall WantChildKey(Vcl::Controls::TControl* Child, Winapi::Messages::TMessage &Message);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Indicates whether the form processes keyboard input for a control it owns.

WantChildKey is called by any control that the form owns when the control receives keyboard input. If WantChildKey returns true, the control performs no further processing in response to the keyboard input, instead deferring to its parent form to respond to the keystroke. In its default implementation, WantChildKey always returns false; it is overridden in TActiveForm to implement certain ActiveX functionality.