blackman12 Posted September 29, 2012 Share 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 Link to comment Share on other sites More sharing options...
blackman12 Posted September 29, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
blackman12 Posted September 30, 2012 Author Share Posted September 30, 2012 anyone hasnt got an answer? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now