intime69 Posted January 27, 2011 Share Posted January 27, 2011 Is there any way to avoid flickering when resizing a GUI Window with an embedded IE object? The web content flickers - not the GUI window itself. I tried adding $WS_CLIPCHILDREN but that didn't make a difference. Any ideas? Has anyone already found a solution for this? Many thanks, Ian Developer and Co-OwnerInTime Applicaitons Inc. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 27, 2011 Share Posted January 27, 2011 Not seeing your issue. If you add just this one line to the top of the example script under _IECreateEmbedded(), it resizes without flickering: Opt("GUIResizeMode", $GUI_DOCKAUTO) Post a short demo script that reproduces your issue. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
intime69 Posted January 28, 2011 Author Share Posted January 28, 2011 (edited) Post a short demo script that reproduces your issue. Thanks for trying to help. I really appreciate that! Here's a very simple example: #include <GUIConstants.au3> #include <WindowsConstants.au3> #include <IE.au3> $GUI = GUICreate("Simple Web Browser", 1116, 800, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_CLIPCHILDREN, $WS_MAXIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME, $WS_TABSTOP)) $object = _IECreateEmbedded () ;Opt("GUIResizeMode", $GUI_DOCKAUTO) $object_ctrl = GUICtrlCreateObj($object, -2, -2, 1120, 804) GUICtrlSetResizing($object_ctrl, BitOR($GUI_DOCKALL, $GUI_DOCKBORDERS)) _IENavigate($object, "http://www.autoitscript.com/forum/") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd To prevent the scrollbars from moving off the edge, $GUI_DOCKALL and $GUI_DOCKBORDERS is required. In my testing, using Opt("GUIResizeMode", $GUI_DOCKAUTO) did not make a difference. If you can figure a way to stop the flickering, I would be internally grateful! Ian Edited January 28, 2011 by intime69 Developer and Co-OwnerInTime Applicaitons Inc. Link to comment Share on other sites More sharing options...
iamtheky Posted January 28, 2011 Share Posted January 28, 2011 like so? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> Opt("GUIResizeMode", $GUI_DOCKBORDERS) $GUI = GUICreate("Simple Web Browser", 1116, 800, -1, -1, BitOR($WS_SIZEBOX , $WS_CLIPCHILDREN) , $WS_EX_COMPOSITED) ;, BitOR($WS_SIZEBOX,$WS_THICKFRAME, $WS_TABSTOP) $object = _IECreateEmbedded () ;~ Opt("GUIResizeMode", 905) $object_ctrl = GUICtrlCreateObj($object, -2, -2, 1120, 804) _IENavigate($object, "http://www.autoitscript.com/forum/") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
intime69 Posted January 28, 2011 Author Share Posted January 28, 2011 like so?The web content still flickers on resize and your code removes the Minimize and Maximize caption buttons... Thanks for trying though! Developer and Co-OwnerInTime Applicaitons Inc. Link to comment Share on other sites More sharing options...
iamtheky Posted January 28, 2011 Share Posted January 28, 2011 Yeah, I was just aiming to solve the flicker, and the script I provided shows no flicker when resizing, on my computer. I would be interested in knowing if I am seeing unexpected results. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
intime69 Posted January 29, 2011 Author Share Posted January 29, 2011 Yeah, I was just aiming to solve the flicker, and the script I provided shows no flicker when resizing, on my computer.I would be interested in knowing if I am seeing unexpected results.Strange that it's not flickering at your end. I'm testing on Windows 7 Home Premium, 64 bit. How about you? Developer and Co-OwnerInTime Applicaitons Inc. 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