[Lazarus] Exception in OnResize event handler

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Nov 6 13:03:13 CET 2016


Am 2016-11-06 um 12:45 schrieb Mattias Gaertner via Lazarus:
 > For example a TButton in a TGroupBox in a TForm.
 > When the theme changes, the GroupBox client area may change,
 > and the form's client area not.
 > Then form's OnResize is not triggered.
 > You need to set the GroupBox.OnResize event.

Then this seems to be unrelated to my problem.
It's not that the OnResize event is *not* triggered
but that it is triggered but then leads to the RaiseLoop exception.


BTW:
The wording of the help is misleading.
It says:

"Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Width, Height stays the same"

but it also says:

"This event is triggered after the Width, Height, ClientWidth or ClientHeight of the control has changed"

When OnResize is triggered even when ClientWidth or ClientHeight has changed then
the "Common mistake"-sentence makes no sense to me.



More information about the Lazarus mailing list