Prototype

TImageValidateEvent = procedure(Sender: TObject; const aName: string; aParams: array of string; var aAccept: boolean) of object;

Description

TImageValidateEvent is the function type for an OnImageValidate event.


aName contains the link as it appears in the script. It can be a local file, a web page, or a base64 encoded image.

aParams is the list of parameters that were found. These parameters usually start with a question mark, but can also be preceded by a hash mark.

If the procedure returns false in aAccept, the image is not displayed.

See also

TMDStyle.OnImageValidate

TMDCustomControl.OnImageValidate