[TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *white »

Click on a file.
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:
HISTORY.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)
Which was a fix for this bug: [TC 11.0x x64] Multi-Rename Tool: file name combo box disappears
In this thread Ghisler wrote:
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...
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?
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *AntonyD »

Hmmm, in my case the check box "Change date/time" is getting checkmark automatically
Date and Time editboxes are getting filled with current values of selected object in active
panel (I used folder).
And + all 4 tri-state checkboxes of Attributes are getting UNchecked automatically when I
click the label of this groupbox.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *ghisler(Author) »

The date should only be loaded when using the hotkey, not when clicking on the group box. Previously there was only one command "load from file under cursor", that's why its hotkey should still be used.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *AntonyD »

2ghisler(Author)
In another word - you confirm the bug and it will be fixed?

Although I still don’t understand why the reference to hotkeys was used
in the explanations when we were talking about actions with the mouse.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *ghisler(Author) »

Yes I do.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *ghisler(Author) »

This should be fixed in RC3, please check it!
12.12.24 Fixed: Change attributes: Click on groupbox "Load from file under cursor" worked like clicking on the button "From active panel" in it (64)
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 5743
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.50rc2 64-bit] Change Attributes, click on groupbox executes button

Post by *white »

ghisler(Author) wrote: 2024-12-18, 11:34 UTC This should be fixed in RC3, please check it!
12.12.24 Fixed: Change attributes: Click on groupbox "Load from file under cursor" worked like clicking on the button "From active panel" in it (64)
Tested OK using TC 11.50rc3 64-bit.
I find the text "in it" at the end of the line in HISTORY.TXT hard to comprehend. I suggest removing it or replacing it with "within the groupbox".

Moderator message from: white » 2024-12-18, 12:14 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply