niedziela, 23 lipca 2017
tempdelphi
procedure TfrmWeb.WBStatusTextChange (Sender: TObject;
const Text: WideString);
var
doc: IHTMLDocument2;
element: IHTMLElement;
begin
doc: = WB.Document as IHTMLDocument2;
GetCursorPos (p);
p: = WB.ScreenToClient (p);
if pX <= 0 then pX: = 0; // screen exit protection
if pY <= 0 then pY: = 0; // as above
if pX> = WB.Height then pX: = WB.Height;
if pY> = WB.Width then pY: = WB.Width;
if Loaded then
begin
elem: = doc.elementFromPoint (pX, pY);
frmWeb.Caption: = 'mini WebBrowser [X:' + intToStr (pX) + 'Y:' + IntToStr (pY) + ']';
sPanel2.Caption: = '[X:' + intToStr (pX) + 'Y:' + IntToStr (pY) + ']';
try
lastName: = elem.getAttribute ('name', 0);
except on exception to end;
LastID: = elem.id;
LastTagName: = item.tagName;
LastX: = pX;
LastY: = pY;
sPanel3.Caption: = 'TagName:' + lastTagName +
'|| ID: '+ LastID +' || NAME: '+ lastName +' || ClassName: '+ LastClassName;
end;
end;
Subskrybuj:
Komentarze do posta (Atom)
-
February 24/25 after November 22nd, but as usual, I didn't clean the apartment, unfortunately, although I'll wait until I'll ...
-
January 2 and now it's high time to write a new entry from January 2nd. fuck me. fuck me. How in this prison I still feel so dirty, t...
-
December 9 - Today 2 dreams around 6:00. Holes as in the matrix (I wrote so, but I don't remember what's going on anymore). Rafal...
Brak komentarzy:
Prześlij komentarz