Contents - Index - Previous - Next


HrefAtPoint method




Declaration
function HrefAtPoint(X, Y: Integer): WideString;

Description

Retrieves the HREF attribute at the given position.

The X and Y parameters are the pixel coordinates of the mouse pointer in the client area of the control. The X and Y parameters may be obtained in a mouse event handler, which supplies the mouse coordinates as the X and Y parameters of the method call.

The method is useful when the control is in Browse mode.


Example

procedure TForm1.ProfDHTMLEdit21MouseMove(Sender: TObject;
  Shift: TShiftState; X, Y: Integer);
begin
  StatusBar1.Panels[0].Text :=
   'HREF:' + (Sender as TProfDHTMLEdit2).HrefAtPoint(X, Y);
end;