BoonPek Posted July 8, 2011 Posted July 8, 2011 Hello there!It has been some time since I last posted here, lol So yes, back to topic! Is there a way to lock the height of an object in direct relation with the GUI size - not using percentages, but pixels instead? I've experimented with GUICtrlSetResizing() but it doesn't seem to fully do what I want accomplished (it works horizontally, not vertically).This is what the code below looks like normally:And how it looks like when resized vertically:#include <GuiConstantsEx.au3> #include <IE.au3> GUICreate("Launcher", 854, 480, -1, -1, 0x16CF0000, 0x00000100) Global $oIE = ObjCreate("Shell.Explorer.2") GUICtrlCreateObj($oIE, 0, 0, 854, 380) GUICtrlSetResizing(-1, 1) GUICtrlCreateButton("BIG BUTTON", 0, 380, 854, 100) $oIE.navigate("about:blank") $oIE.document.body.style.border = "0" $oIE.document.write("<body style='border:0;margin:0px'><iframe frameborder=0 src =http://autoitscript.com/forum/ width=100% height=100%></iframe></body>") $oIE.refresh $oIE.document.body.scroll = "no" GUISetState() Do Sleep(10) Until GUIGetMsg() = $GUI_EVENT_CLOSEI'd like it to look like this:I've experimented with different values of GUICtrlSetResizing() but to no avail. There are other ways, I know, such as manually resetting the size of the elements - but they seem rather inefficient. Any input would be considered and appreciated!Thanks in advance,Boon.
taietel Posted July 8, 2011 Posted July 8, 2011 !: #include <GuiConstantsEx.au3> #include <IE.au3> GUICreate("Launcher", 854, 480, -1, -1, 0x16CF0000, 0x00000100) Global $oIE = ObjCreate("Shell.Explorer.2") GUICtrlCreateObj($oIE, 0, 0, 854, 380) GUICtrlSetResizing(-1, 102) GUICtrlCreateButton("BIG BUTTON", 0, 380, 854, 100) GUICtrlSetResizing(-1, 582) $oIE.navigate("about:blank") $oIE.document.body.style.border = "0" $oIE.document.write("<body style='border:0;margin:0px'><iframe frameborder=0 src =http://autoitscript.com/forum/ width=100% height=100%></iframe></body>") $oIE.refresh $oIE.document.body.scroll = "no" GUISetState() Do Sleep(10) Until GUIGetMsg() = $GUI_EVENT_CLOSE ? Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text
BoonPek Posted July 27, 2011 Author Posted July 27, 2011 Exactly what I needed! Thanks, and sorry for the late reply ._.
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