RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.WantChildKey Method

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

Pascal
function WantChildKey(Child: TControl; var Message: TMessage): Boolean; virtual;
C++
virtual __fastcall Boolean WantChildKey(TControl * Child, TMessage Message);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!