[Lazarus] Form events firing order and count

Gabor Boros mlnglsts at bgss.hu
Fri Feb 16 18:40:43 CET 2018


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 --------------
A non-text attachment was scrubbed...
Name: FormEvents.tar.gz
Type: application/x-gzip
Size: 1743 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180216/6e35ceeb/attachment.bin>


More information about the Lazarus mailing list