[Lazarus] Exception in OnResize event handler
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Nov 7 09:52:08 CET 2016
> Jürgen Hestermann via Lazarus <lazarus at lists.lazarus-ide.org> hat am 6. November 2016 um 13:03 geschrieben:
>[...]
> 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.
Yes. I guess so too.
> 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.
Well, it is rare that ClientWidth changes without Width changing, so it is common that programmers forget about ClientWidth. That's why I had to add a note.
Mattias
>
> --
>
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
More information about the Lazarus
mailing list