MCornelio Posted February 1, 2010 Share Posted February 1, 2010 I have the following small bit of code that I've been using for quite a while.My problem is that the IE control doesn't seem to resize properly (or initially).I've had to introduce the offsets below (-2 and -56) to get a proper display.Then, when I resize the form, the bottom doesn't seem to grow correctly.It's always off by a small bit.What am I doing wrong.?Thanks in advance for any help.;=== ( C O D E ) ===_IEErrorHandlerRegister()Global $oIE = _IECreateEmbedded()Global $InitialWidth = 640Global $InitialWidth = 480Global $formMain = GUICreate($gAppName, $InitialWidth, $InitialHeight, _ @DesktopWidth / 2 - $InitialWidth / 2, @DesktopHeight / 2 - $InitialHeight / 2, _ $WS_SIZEBOX + $WS_CLIPCHILDREN + $WS_CLIPSIBLINGS + $WS_MINIMIZEBOX _ + $WS_MAXIMIZEBOX + $WS_SYSMENU, $WS_EX_ACCEPTFILES)Global $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, $InitialWidth - 2, $InitialHeight - 56)GUICtrlSetResizing($oIE, $GUI_DOCKBORDERS) ; 1= Dock All Sides (same as 102) Link to comment Share on other sites More sharing options...
james3mg Posted February 1, 2010 Share Posted February 1, 2010 First, welcome to the forums I think you want to set the resizing on $GUIActiveX , not on $oIE. Also, when posting code, please wrap it in [autoit ] and [/autoit ] tags (omit the space prior to each closing bracket) or press the blue button below the "Bold" button when composing your message...it makes it easier to read. "There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110 Link to comment Share on other sites More sharing options...
MCornelio Posted February 1, 2010 Author Share Posted February 1, 2010 First, welcome to the forums I think you want to set the resizing on $GUIActiveX , not on $oIE. Also, when posting code, please wrap it in [autoit ] and [/autoit ] tags (omit the space prior to each closing bracket) or press the blue button below the "Bold" button when composing your message...it makes it easier to read. James, Thanks for the welcome and the info. I feel like a 'tard ;-) I still had to account for the height of the menu ribbon ($InitialHeight-48) but it resizes much, much better now :-) I really appreciate the help. I'll try to remember to bracket my code next time. Thanks again. Mike Link to comment Share on other sites More sharing options...
james3mg Posted February 1, 2010 Share Posted February 1, 2010 Hey, glad it helped! Thanks for showing an effort, and for listening ...and believe me, I've had my fair share of *duh* moments lately too Fortunately, there's always someone around here willing to help us learn if we're willing to hear it. "There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110 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