[TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

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

Moderators: white, Hacker, petermad, Stefan2

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

[TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

  • Enable one or two Separate Trees (Ctrl+Shift+F8)
  • Double-click a virtual folder in a separate tree
  • Try to access Configuration menu using keyboard shortcut Alt+O
If it's not stuck, try double-clicking the virtual folder again.

If it's stuck no Alt+key combination works, for example Alt+F4 to exit the program. Also, to close the program using the mouse you have to click the close button X twice.

Tested with Windows 11 (22H2). Only TC 64-bit has this problem.

Problem occurs since TC 10.00b1 64-bit. (TC 9.51 works OK)
Last edited by white on 2022-10-05, 23:12 UTC, edited 1 time in total.
Reason: Options menu corrected to Configuration menu
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *Horst.Epp »

No confirmed.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *petermad »

I can confirm this all the time under Window 10 21H2 and sometimes under Windows 7. When it happens it seems like TC's window has lost focus - for example it takes two clicks on the red x to close TC.
Last edited by petermad on 2022-10-06, 09:09 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *ghisler(Author) »

Not confirmed. Maybe it needs some additional condition?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

petermad wrote: 2022-10-05, 22:26 UTC When it happens it seems like TC's window has lost focus - for example it tkas two clicks on the red x to clos TC.
It looks that way because first click can be anywhere. However, when you press the Alt key the menu hotkeys do get underlined (but keys don't work).
ghisler(Author) wrote: 2022-10-06, 07:32 UTC Not confirmed. Maybe it needs some additional condition?
Not that I'm aware of. You may have to try several times though.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *petermad »

On my Window 10 PC it happens all the time, on my Windows 7 PC it seems to only happen if the virtual folder has non-virtual subfolders.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *ghisler(Author) »

Here it happens even with TC 9.00 from 2016 (with the network virtual folder). So it seems to be a very old problem, no one has noticed so far. Unfortunately even after 4 hours of debugging I couldn't find out what is causing it, and how to prevent it. So for now it will remain unresolved.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

ghisler(Author) wrote: 2022-10-10, 18:40 UTC Here it happens even with TC 9.00 from 2016 (with the network virtual folder).
TC 9.00 works fine here. Isn't network virtual folder a bad choice for testing because Windows is going to search the network? Does it happen with other virtual folders?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *ghisler(Author) »

It did not happen with others, but it rarely happens with others in 10.52 RC1 too here, so I don't know for sure.
The symptoms are the same: Alt+Menu char gives no reaction, the first click on the program is ignored too, only the second click works.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

I can reproduce it too with Network virtual folder and TC 9.00, but only with the Network folder.
Perhaps the network folder is causing it when double clicking other virtual folders in version 10.00b1 64-bit and later.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *ghisler(Author) »

I finally found the reason! The Lazarus controls library calls SetCapture(control handle) when receiving the left mouse button down or double click event, and ReleaseCapture when receiving the mouse button up event. Apparently in some cases this up event isn't received, so the tree panel keeps the mouse capture. I don't know why this has an effect on the menu, but it does. Calling ReleaseCapture immediately in the double click event seems to fix this issue.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

Tested using TC 10.52rc3 64-bit.
I am only able to reproduce it now with the Network folder (same as version TC 9.51 and earlier). So that seems to be a separate issue. TC works much better now, thanks for your hard work.
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *petermad »

Tested using TC 10.52rc3 64-bit.
I am only able to reproduce it now with the Network folder
The same here. The Network folder is also the only one that I cannot unfold in the tree by double-clicking when Autotreechange=1 (Windows 10)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *ghisler(Author) »

The network folder is special: In the file lists, I use a function where I ask Windows to send callbacks when network shares are being detected. But I can't do that in the tree, so I have to call the function which waits until all the folders are there. You have to wait a few seconds until the tree has been updated (often with a wait dialog) until you can use Alt+Letter again.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.52rc1 x64] Double click in separate tree prevents Alt+key and click

Post by *white »

ghisler(Author) wrote: 2022-10-16, 07:22 UTC You have to wait a few seconds until the tree has been updated (often with a wait dialog) until you can use Alt+Letter again.
I wish it was only a few seconds. That's a different issue. In the case you are describing the Alt key does nothing (letters in the menu don't get underlined) and also applies for the 32-bit version. The lockup described in this thread (access keys do get underlined but don't work) can still happen for the network folder and only for the 64-bit version.
ghisler(Author) wrote: 2022-10-13, 19:33 UTC I finally found the reason! The Lazarus controls library calls SetCapture(control handle) when receiving the left mouse button down or double click event, and ReleaseCapture when receiving the mouse button up event. Apparently in some cases this up event isn't received, so the tree panel keeps the mouse capture. I don't know why this has an effect on the menu, but it does. Calling ReleaseCapture immediately in the double click event seems to fix this issue.
It seems there is another situation with the network folder where the tree panel keeps the mouse capture.
Post Reply