Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi TWebbrowser Flicker on Resize (https://www.delphipraxis.net/130793-twebbrowser-flicker-resize.html)

Razor 13. Mär 2009 09:09


TWebbrowser Flicker on Resize
 
Hello!


When i put a panel and align it on top and then put a webbrowser and align it to the top.Then i load the webpage and try to resize a form it flickers?

_BlackDragon_ 13. Mär 2009 11:16

Re: TWebbrowser Flicker on Resize
 
Hi,

is it possible that you didn't set property DoubleBuffered := true. I'm not sure, but try it
for the entire form or just set the property only for the panel or/and the TWebBrowser control.

It's your turn... :wink:

Greets

BlackDragon

Razor 13. Mär 2009 15:51

Re: TWebbrowser Flicker on Resize
 
It does not work...
Now don't get me wrong i loaded xaml but if i load normal page it does the same.
However if i only put webbrowser as top component it doesnt flicker at all.

http://img22.imageshack.us/img22/228/11537094.th.jpg

_BlackDragon_ 14. Mär 2009 16:57

Re: TWebbrowser Flicker on Resize
 
Hi Razor,

i figured out your problem and you're right.

Here is your solution:
  • Put a panel at the form. Set its align to top. (for example)
  • Put another panel and its align to client.
  • Put your TWebBrowser at second panel.

Code:
Form1
 |_ Panel1 (Align: Top)
 |_ Panel2 (Align: Client)
     |_ WebBrowser1 (Align: Client)
Now test. I also set the DoubleBufferd property of the form to true, but it seems that there are no differences.
The flicker is gone. Don't ask me why... :wink:

I think it's an internal painting problem.

Greets

BlackDragon


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz