Recent

Author Topic: How to resolve WMSize loop error?  (Read 1937 times)

SunyD

  • Guest
How to resolve WMSize loop error?
« on: November 24, 2017, 05:58:40 pm »
I create Internet-Explorer part for Phils TWebbrowser control http://forum.lazarus.freepascal.org/index.php/topic,37458.0.html.

Now I can create and show html-page, but I get WMSize loop error.
Does anyone know how to resolve this error?



« Last Edit: November 24, 2017, 06:01:15 pm by Soner A. »

jamie

  • Hero Member
  • *****
  • Posts: 6077
Re: How to resolve WMSize loop error?
« Reply #1 on: November 25, 2017, 09:53:58 pm »
I have not looked at your code but I can offer this, if you are changing the size of the control during the
OnSize handler, it will keep looping..

 Let us know if that is what you are doing ?

 The OnSize event is to report  size status after the event, not before.

P.S.

 I did ask for the implementation of OnSizing but that pretty much got tossed out the door, so
I implemented the WM_SIZING message so I could make for corrections before the values actually
got past to the LCL code. After that I was able to capture the form sizing events and change their values
 before they actually took effect, which gave my app a very smooth aspect ratio sizing without flickering.

The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018