UpperCaseProc
variable, TpmUpperCaseProc type
Unit
Declaration
type TpmUpperCaseProc = procedure(t: PChar);
const UserUpperCaseProc: TpmUpperCaseProc = nil;
Description
The global procedure variable UserUpperCaseProc is the procedure that is used by TPlusMemo components to get uppercase version of their text content, when the value of the UpperCaseType property is set to pmUserDefined. TPlusMemo components need to get an uppercase version of parts of their text inside of method FindText, when parameter MatchCase is set to False. Also, this procedure will be called if needed when parsing for dynamic syntax highlighting.
The mechanism implemented through UserUpperCaseProc allows an application programmer to control how TPlusMemo components obtain an uppercase version of a string. Procedures of type TpmUpperCaseProc are responsible to change the content of t so that every character is in uppercase upon return. Variable UserUpperCaseProc is initialized to nil at startup, so the application should assign to it a procedure with the proper parameter signature before any TPlusMemo has its UpperCaseType property set to pmUserDefined. This is normally done inside the initialization part of a unit.