blackman12 0 Posted September 29, 2012 (edited) Func _GuiCTRLCreateWebPage($eX,$eY,$eW,$eH,$navigate="about:blank",$border = "none",$bgcolor = "green",$scroll = "auto",$face = "red",$base = "green",$dark = "black",$3d = "white",$arrow = "black",$highlight = "white",$shadow = "gray",$track = "white") $oIE = ObjCreate("Shell.Explorer.2") $html = GUICtrlCreateObj($oIE,$eX,$eY,$eW,$eH) $oIE.navigate($navigate) $oIE.document.body.style.border = $border $oIE.document.body.bgcolor = $bgcolor $oIE.document.body.scroll=$scroll $oIE.document.body.style.scrollbarFaceColor=$face $oIE.document.body.style.scrollbarBaseColor=$base $oIE.document.body.style.scrollbarDarkShadowColor=$dark $oIE.document.body.style.scrollbar3dLightColor=$3d $oIE.document.body.style.scrollbarArrowColor=$arrow $oIE.document.body.style.scrollbarHighlightColor=$highlight $oIE.document.body.style.scrollbarShadowColor=$shadow $oIE.document.body.style.scrollbarTrackColor=$track $oIE.document.body.style.Width=100 ; it's here Return $oIE EndFunc i know css, html or js. and i tried many way for this. but anyone didnt work. "$oIE.document.body.style.Width=100" i want to set a limit for body or image width in shell.explorer.2, i tried <img src="http://i.imgur.com/Hxehe.jpg" style="max-width:250px" alt="" /> but it didnt work. Edited September 29, 2012 by blackman12 Share this post Link to post Share on other sites
blackman12 0 Posted September 29, 2012 (edited) auh meanwhile i tried this one but, same result: $oIE.document.body.innerhtml = '<style type="text/css">body {width:400px;}</style>' & $mVeri[$l+1][2] --- edit: '<style type="text/css">body {width:100px;}img {max-width:100px;}</style>' & $mVeri[$l+1][2] i tried to write a file as a .html, its work but when i try this in object, it doesnt work Edited September 29, 2012 by blackman12 Share this post Link to post Share on other sites
blackman12 0 Posted September 30, 2012 anyone hasnt got an answer? Share this post Link to post Share on other sites