TPJHotLabel is a simple Delphi component that descends from TLabel. It provides a clickable label that can start the default web browser to access a specific URL. For mailto URLs the default email client is started.Key features of the component are:All properties of TLabel are supported, although the usage and default values of some of the inherited properties have been changed.The URL property stores the URL that is accessed when the label is clicked. The related Caption property can either store descriptive text or can display the URL, depending on the value of the CaptionIsURL property. The ability to link the Caption and URL makes it easy to display the URL without having to keep two properties synchronised manually.The URL can be validated to check for supported protocols. This validation is switched on and off using the ValidateURL property.The label's Font property defaults to a navy blue color to indicate a hot link.The label can be highlighted when the mouse passes over it. Highlighting is used if the HighlightURL property is True, and the font used for highlighting has been is set using the HighlightFont property.The label displays the hand point cursor by default. For versions of Delphi that do not support provide the crHandPoint cursor, the component links a custom cursor resource into the application.The component's pop-up hints can be customised using the HintStyle property.This release is backwards compatible with v1 of the component. All the new properties introduced in v2 are either switched off by default or emulate the properties available in v1.An OpenHelp compatible help file is provided that can integrate with the help system of Delphi 3 to 7. The help file is not compatible with Delphi 2 but can be used independently of the IDE.
|