Could those who see this issue tell us the exact operating system they are using? Couldn't it be that this is due to one of the many bugs introduced by Microsoft after Win 7 and which are now gradually removed?
Mine is Win-11 Home (64 bit) Version 22H2, Build 22621.1105, and I also have a Win-7 Pro Service Pack 1 (32 bit) on a VM. None of them shows the issue.
I can reproduce the issue with every Lazarus/FPC version I have, both on win10 and win11. The issue is more serious then I thought: TGroupBox, TRadioGroup, TCheckBox are all affected. It's related to the DoubleBuffered property, as mentioned in one of the previous posts. If I set DoubleBuffered to False the issue is gone.
Step to reproduce:
1. Drop a TGroupBox to a from
2. Make sure Doubebuffered is true
3. Drop random controls inside TGroupBox
4. Run application
5. Click ten times or so inside the TGroupBox
6. Click a few times the taskbar. It will only work if you click the taskbar, the empty part of the taskbar
7. Click the TGroupBox again
Repeat 5 -> 7 until you see the issue.
PS: Similar application created with delphi don't show this behaviour.
PS: I will soon test it on win7....the issue is present on win7 too.