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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus