Applies to
TURLHighlighter component
Declaration
type TURLType = (urlWeb, urlEmail, urlNNTP, urlFile, urlOther);
type TURLEvent = function(Sender: TObject; CurrentContext: SmallInt; URLType: TURLType): Boolean of object;
property OnURL: TURLEvent;
Description
This event lets your application decide whether to highlight the url just found. Sender is the TUrlHighlighter component sending the event. CurrentContext is the value assigned to the start-stop key where the url is found (zero if outside of any start-stop key). URLType is the type of url about to be highlighted.
The url is highlighted if and only if your handler returns True. If your application does not provide a handler, only the Scope and Priority properties are used to decide whether the url is highlighted.