[Lazarus] Form events firing order and count

Wolf wv99999 at gmail.com
Fri Feb 16 21:06:39 CET 2018


When I was in the same situation, I modified each procedure / function 
to read

procedure xxx

begin

{first line} write('procedure xx opened');

...

{last line} writeln('procedure xxx closed');

end;

This produced on the console an easy trace of who called whom, and how 
they were stacked.

Wolf


On 17/02/2018 06:40, Gabor Boros via Lazarus wrote:
> Hi All,
>
> I want to know when a form maximized, restored or moved. But 
> completely lost between form's events. See below what I got with the 
> attached example project. For example 1 WindowPosChanged at 
> application start with Linux-Qt and 3 with Windows, with Linux-Qt form 
> maximize and restore give same result but with Windows the result 
> different for maximize and restore, etc.
>
> *****Linux-Qt*****
>
> *Application start*
> Resize
> ChangeBounds
> WindowPosChanged
> Move
>
> *Form maximize*
> WindowStateChange
> Move
> ChangeBounds
> WindowPosChanged
> Resize
>
> *Form restore*
> WindowStateChange
> Move
> ChangeBounds
> WindowPosChanged
> Resize
>
> *After form move*
> Move
>
> *****Windows*****
>
> *Application start*
> Resize
> ChangeBounds
> WindowPosChanged
> Move
> WindowPosChanged
> WindowPosChanged
>
> *Form maximize*
> Move
> ChangeBounds
> WindowPosChanged
> Resize
> WindowStateChange
> WindowPosChanged
>
> *Form restore*
> ChangeBounds
> WindowPosChanged
> Resize
> WindowStateChange
> WindowPosChanged
>
> *Meanwhile form move*
> Move
> WindowPosChanged
> Move
> WindowPosChanged
> .
> .
> .
> Move
> WindowPosChanged
>
> Gabor
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180217/7f20b5ab/attachment.html>


More information about the Lazarus mailing list