Sign in to follow this  
Followers 0
intime69

Embedded IE Flickers when resizing

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by intime69

Developer and Co-OwnerInTime Applicaitons Inc.

Share this post


Link to post
Share on other sites

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

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0