I often find that I am declaring a simple procedure type
TMessageProc = procedure(const AMsg: String);
in Delphi. The goal is to allow the transfer of callback procedures to processing functions so that they can update the user interface without knowing about the user interface.
Of course, this should be a general paradigm in Delphi programming. Is there a standard procedure type declaration in one of the commonly used units that I can use to do this? Unfortunately, with the roll-my-own method, I don't quite agree between projects on how I name or declare a type.
source
share