boltc Posted September 2, 2009 Share Posted September 2, 2009 (edited) Hello, I want to change the style of the embedded ie window ($GUIActiveX) in my gui. I want to remove the vertical scrollbar and the (inset) border of the object. But i dont know anymore how to do that. Can someone help me? Here is my script: expandcollapse popup#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> HotKeySet("{ESC}", "Terminate") Func Terminate() Exit 0 EndFunc _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () GUICreate("Embedded Web control Test", @DesktopWidth, @DesktopHeight, 0, 0, _ $WS_POPUP + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN + $WS_EX_TOPMOST ) $GUIActiveX = GUICtrlCreateObj($oIE, 200, 200, @DesktopWidth - 225, @DesktopHeight-225) $GUI_Button_Home = GUICtrlCreateButton("Home", 10, 420, 100, 30) GUISetState() ;Show GUI $url = "http://www.google.com" _IENavigate ($oIE, $url) ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home _IENavigate ($oIE, $url) EndSelect WEnd GUIDelete() Exit Edited September 2, 2009 by boltc Link to comment Share on other sites More sharing options...
DaleHohm Posted September 3, 2009 Share Posted September 3, 2009 See here: http://www.autoitscript.com/forum/index.php?showtopic=29316&hl=\client+edge\ Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
boltc Posted September 7, 2009 Author Share Posted September 7, 2009 Thanks for your answer. It was not the options in autoit, but in the html page i loaded: <style> body { border:0; } </style> fixed the problem:) thanks anyway! Link to comment Share on other sites More sharing options...
DaleHohm Posted September 7, 2009 Share Posted September 7, 2009 I don't know what you mean by "It was not the options in autoit", but I'd glad you found what you needed. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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