Delphiturbo
Messages postés68Date d'inscriptionmercredi 31 octobre 2007StatutMembreDernière intervention29 juillet 2008
-
6 juin 2008 à 00:21
f0xi
Messages postés4205Date d'inscriptionsamedi 16 octobre 2004StatutModérateurDernière intervention12 mars 2022
-
6 juin 2008 à 17:06
Salut
I try to zoom my Webbrowser with the same Factor of the Form scale :
I can zomm webbrowser like these:
WebBrowser1.OleObject.Document.Body.Style.Zoom := 2;// or
WebBrowser1.OleObject.Document.Body.Style.Zoom :='200%';
But I would like to calculate the Factor like this :
var zoom : Real;
creenwidth : Integer;
begin creenwidth : = Screen.MonitorFromWindow(Handle).Width;
zoom:= creenwidth div Form1.width;
WebBrowser1.OleObject.Document.Body.Style.Zoom :=zoom; // sa marche pas !