Applies to
TURLHighlighter component
Declaration
property BaseContext: Integer;
Description
This property is used to assign a given context numbers to highlighted urls. Such context numbers get passed to TPlusMemo.OnContext event, that your application can use to know when a url has been clicked. Its default value is 1024.
The actual context number given to a url is BaseContext + url index, where url index is in the range 0..14 and depends on the kind of url. The following url index values are defined:
| Kind of url | value of url index in OnContext events |
| HTTP urls (http://...) | 0 |
| Short form web urls (www....) | 1 |
| Mailto urls (mailto://...) | 2 |
| Short email urls (...@...) | 3 |
| News url (news:...) | 4 |
| Nntp urls (nntp://...) | 5 |
| Ftp urls (ftp://....) | 6 |
| Short ftp urls (ftp....) | 7 |
| Gopher urls (gopher://...) | 8 |
| Short gopher urls (gopher....) | 9 |
| Telnet url (telnet://...) | 10 |
| TN3270 urls (tn3270://...) | 11 |
| Wais urls (wais://...) | 12 |
| Prospero urls (prospero://...) | 13 |
| Https urls (https://...) | 14 |