Select menu option Files/Change Attributes
Click on the groupbox "Load from file under cursor" (not on a button)
The first button in the groupbox is executed.
This bug is introduced by this fix:
Which was a fix for this bug: [TC 11.0x x64] Multi-Rename Tool: file name combo box disappearsHISTORY.TXT wrote:12.02.24 Fixed: Clicking on a groupbox (or button which cannot be focused) would put the focus on it although it was set to "no tabstop", which can cause dialog elements to disappear after Alt+Tab (64)
In this thread Ghisler wrote:
I noticed that the (annoying) behavior of the groupbox getting focus when clicking the groupbox only happens when using 64-bit TC. Doesn't that mean that that is a Lazarus thing rather then a Windows thing?ghisler(Author) wrote: 2024-02-12, 10:15 UTC The problem occurs when you click on a group box, or an element in a group box like a speed button which cannot get focus. For unknown reasons, Windows then gives the group box the focus, although it is set to not be reachable via Tab. You can test this by clicking on the group box background instead of clicking on any of the buttons.
Intercepting WM_SETFOCUS and setting the focus to the first contained control which can get the focus (e.g. the edit box) seems to fix the problem. I have no idea why it causes this weird drawing errors, must be some obscure Windows bug which they fixed in Windows 11...