TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
EricB
Senior Member
Senior Member
Posts: 337
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *EricB » 2019-10-31, 19:37 UTC

When in Dark Mode, and deleting a file or folder, the deletion confirmation messagebox does not get the focus. This works fine in "normal" color mode. I've set my mouse settings in Control Panel to move the pointer to the default button in a dialogue box.

Used TC 9.50 Beta 3 x32 on Win10 x64 1903 and on Win10 x64 Pro 1803.

Note: this behaviour was already present in Beta 1 and Beta 2.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38408
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *ghisler(Author) » 2019-11-01, 15:25 UTC

Sorry, cannot reproduce. Do you mean the button doesn't have the focus, or the entire dialog box? I mean, can you use the Tab key to switch to the right button?
Author of Total Commander
http://www.ghisler.com

User avatar
EricB
Senior Member
Senior Member
Posts: 337
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *EricB » 2019-11-01, 17:29 UTC

I have to restate indeed: the dialog gets the focus (I see the default button being highlighted) but the mouse pointer stays where it already was. In "light" mode it is placed onto the default button in the dialog.

It does not matter if I use Del or Shift-Del.

User avatar
Usher
Power Member
Power Member
Posts: 631
Joined: 2011-03-11, 10:11 UTC

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *Usher » 2019-11-01, 20:31 UTC

2EricB
The mouse pointer stays where it already was also in normal (light) mode. Tested in Windows XP on TC 9.22a and current beta. Maybe it's something in your mouse driver settings?
Regards from Poland
Andrzej P. Wozniak

User avatar
EricB
Senior Member
Senior Member
Posts: 337
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *EricB » 2019-11-01, 21:57 UTC

2Usher
I've set my mouse properties in Control panel as such that the pointer will always move to the default button in an active dialogue. Works throughout any app, and also for TC in light mode for delete dialogue, but not in dark mode. I'm using Win 10 currently, but I've also done this in the past for XP.

Regards, EricB

User avatar
Usher
Power Member
Power Member
Posts: 631
Joined: 2011-03-11, 10:11 UTC

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *Usher » 2019-11-02, 01:20 UTC

2EricB
I changed my mouse settings and retested both modes. Now I can confirm your observations. In the worst case the pointer should be set at the centre of the dialog window, as described in Windows help.

Some problems with mouse navigation in dark mode are described in HISTORY.TXT, but there were also reported bugs for mouse hover and scroll in dark mode.
Regards from Poland
Andrzej P. Wozniak

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38408
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *ghisler(Author) » 2019-11-04, 11:43 UTC

Moving the mouse pointer on a button only seems to work with the Windows MessageBox() function. However, this function does not support dark mode. Therefore I have to create my own Delphi/Lazarus form. This is like all the other complex dialog boxes in TC, e.g. "F5 copy" dialog, "Configuration - Options" dialog or "Find files" dialog. Does the mouse cursor get on the default button in these? Probably not.
Author of Total Commander
http://www.ghisler.com

User avatar
EricB
Senior Member
Senior Member
Posts: 337
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *EricB » 2019-11-04, 15:15 UTC

2Ghisler
You are absolutely right. F5 and F6 dialog boxes do not move the mouse to the default button, in both light and dark mode. This did never bother me though, since the Copy to (or Move to) text field gets focus and if needed I start typing directly and then used Enter to confirm. Same story for Find files: the "Search for" text field has focus and I can start typing right away.

I do hardly ever use Configuration - Options, since I have PeterMad's menu installed, which has separate entries for every configuration submenu.

Why is the F8 dialog so different? Probably because it has no typing fields.... In pre-9.50 I could immediately click without moving the mouse and be done with it, which is the fastest way if you are a mixed mouse/keyboard user like me. Now I probably have to get used to using the "Enter" key or move the mouse to the right position.

Regards, EricB

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38408
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.5b3 Dark mode: no focus for Delete confirmation MsgBox

Post by *ghisler(Author) » 2019-11-04, 15:45 UTC

The normal not dark delete confirmation uses a single Windows function: MessageBox. It seems that the mouse software recognizes this dialog style and places the cursor on the default button. This probably also works with other Windows dialogs like the background progress dialog, but not with Delphi forms like all other dialogs.
Author of Total Commander
http://www.ghisler.com

Post Reply