Когда я в последний раз пробовал GTK3 в своём проекте.
Используя CheckBox, установив ему визуальное свойство Checked и активируем OnChange.
Если происходит FormActivate.
То, при такой раскладке, происходит вызов OnChange (CheckBoxChange) раньше, чем форма активируется (раньше FormActivate).
Googla translate:
The last time I tried GTK3 in my project.
Using CheckBox, setting its visual property to Checked and activating OnChange.
If FormActivate occurs.
Then, with this setup, OnChange (CheckBoxChange) is called before the form is activated (before FormActivate).
Debian + Cinnamon + X11/xLibre
Free Pascal Compiler version 3.2.2-r0d122c49 [2026/02/23] for x86_64
Lazarus 4.99