gsb Posted April 8, 2007 Share Posted April 8, 2007 2-pixel wide 3-D border around GUICtrlCreateObj() How to get rid of this border in the GUI? When I add the IE object into my control, I get a 2-pixel wide 3-D border around the control. Is there a way to remove that border? ... $height = 480 $width = 640 $oIE = ObjCreate("Shell.Explorer.2") $theGUI = GUICreate( $myWinTitle, $width, $height, -1, -1 ,BitOR($WS_SYSMENU, $WS_CAPTION, $WS_SIZEBOX ) );, $WS_EX_TOPMOST) $theActiveX = GUICtrlCreateObj($oIE, 5, 5 , $width-10 , $height-10 ) ... Thanks, gsb "Did you ever stop to think? ...and forget to restart!" Link to comment Share on other sites More sharing options...
lod3n Posted April 9, 2007 Share Posted April 9, 2007 GUICtrlCreateObj doesn't set the border, it's the IE object. Try this: $oIE.document.body.style.border = "0px" [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
gsb Posted April 9, 2007 Author Share Posted April 9, 2007 Thank you lod3n. I can be stupid some times. I thought it was added when making the control. Not part of the page CSS... is why I could not delete it. LOL Thanks again. gsb "Did you ever stop to think? ...and forget to restart!" Link to comment Share on other sites More sharing options...
therks Posted April 9, 2007 Share Posted April 9, 2007 Wow. I had been looking for this too. Can't believe it was being added by IE. Weird. Thanks lod3n. My AutoIt Stuff | My Github 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