Contents - Index - Previous - Next


SrcAtPoint method




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

Description

Retrieves the SRC 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 :=
   'SRC:' + (Sender as TProfDHTMLEdit2).SrcAtPoint(X, Y);
end;