Re: [Lazarus] Exception in OnResize event handler

2016-11-07 Thread Mattias Gaertner via Lazarus
> Jürgen Hestermann via Lazarus 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: > Th

Re: [Lazarus] Exception in OnResize event handler

2016-11-07 Thread zeljko via Lazarus
On 11/06/2016 07:08 PM, Jürgen Hestermann via Lazarus wrote: Am 2016-11-06 um 16:39 schrieb Ondrej Pokorny via Lazarus: The sentence "Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Width, Height stays the same" makes me think that the event is not triggered

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
Am 2016-11-06 um 16:39 schrieb Ondrej Pokorny via Lazarus: >> The sentence >> "Common mistake: Keep in mind that ClientWidth and ClientHeight can change even when Width, Height stays the same" >> makes me think that the event is not triggered when *Client*Width/-Height changes >> but only when W

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread zeljko via Lazarus
On 11/06/2016 04:39 PM, Ondrej Pokorny via Lazarus wrote: Don't be like a woman who always finds much more meanings in her husband's words than he had in mind, all leading to problems :) X :) zeljko -- ___ Lazarus mailing list Lazarus@lists.laz

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Ondrej Pokorny via Lazarus
On 06.11.2016 16:24, Jürgen Hestermann via Lazarus wrote: Am 2016-11-06 um 16:08 schrieb Ondrej Pokorny via Lazarus: > On 06.11.2016 13:03, Jürgen Hestermann via Lazarus wrote: >> The wording of the help is misleading. >> It says: >> "Common mistake: Keep in mind that ClientWidth and ClientHeight

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
Am 2016-11-06 um 16:08 schrieb Ondrej Pokorny via Lazarus: > On 06.11.2016 13:03, Jürgen Hestermann via Lazarus wrote: >> 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

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Ondrej Pokorny via Lazarus
On 06.11.2016 13:03, Jürgen Hestermann via Lazarus wrote: 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

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
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.

Re: [Lazarus] Exception in OnResize event handler

2016-11-06 Thread Mattias Gaertner via Lazarus
> Jürgen Hestermann via Lazarus hat am 6. > November 2016 um 12:27 geschrieben: >[...] > "Especially it is not sufficient to write only a TForm.OnResize handler > to resize all controls on the form. This is a common bug in Delphi > applications." > > What does the last sentence mean? For exam

[Lazarus] Exception in OnResize event handler

2016-11-06 Thread Jürgen Hestermann via Lazarus
In one of my Windows programs I use a splitter to separate two VirtualTreeView components on a Form. The relation of the heights of these two VirtualTreeView components should be constant even if the height of the Form changed. To achieve this, the two VirtualTreeView components are anchored to