Use the DefaultHandler method or DelphiVCL.Application.DefaultHandler to provide the interface for a method that processes message records.
DefaultHandler is called by Dispatch when it cannot find a method for a particular message. DefaultHandler provides message handling for all messages for which an object does not have specific handlers. Descendant classes that process messages override DefaultHandler according to the types of messages they handle.
Note: In a Delphi message-handling method, calling inherited results in a call to the ancestor’s DefaultHandler method only if that ancestor does not specify a message method for the particular message being handled. Otherwise, calling inherited results in a call to the specific handler for that type of message.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.DefaultHandler using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.DefaultHandler) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.DefaultHandler using the print() command:
1 2 |
print(DelphiVCL.Application.DefaultHandler) print(DelphiVCL.Application.DefaultHandler.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.