RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.DefaultHandler Method

Provides message handling for all messages that do not have specific handlers.

Pascal
procedure DefaultHandler(var Message); override;
C++
virtual __fastcall DefaultHandler( Message);

Override DefaultHandler to extend the default handling of messages. DefaultHandler is the final opportunity for component writers to handle messages to controls. The method referenced by WindowProc provides the first opportunity. Individual message methods such as Click provide additional opportunities. 

DefaultHandler handles the messages Windows sends to manage the control's text: WM_GETTEXT, WM_SETTEXT, and WM_GETTEXTLENGTH

 

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