OnHotSpotCovered Event


Applies to

THtmlViewer component

Declaration

property OnHotSpotCovered: THotSpotEvent;

Description

The OnSpotCovered event occurs when the mouse is moved over or away from an hypertext link. This event may be used to display the destination URL of a hypertext link to allow the user to decide if it should be selected.

Example

The following code may be used to provide a status line display of the hypertext link at the mouse position:

Viewer.OnHotSpotCovered := HotSpotChange;

...

procedure TForm1.HotSpotChange(Sender: TObject; const URL: string);

begin

Panel1.Caption := URL;

end;

See Also:

htOverLinksActive option

LinkAttributes Property

LinkText Property