Page 1 of 1

[TC 11.03]Mouse Scroll problem

Posted: 2024-03-04, 07:50 UTC
by Max33Verstappen
If there's no scrollbar in the file list (meaning one page is enough to show all files) and I scroll the mouse wheel INSIDE that list view by one notch and then move the mouse to other panels having a scrollbar (e.g.:another file list or separate tree), scrolling the wheel one notch in the same direction results in 2 notches scroll in that direction. (If scroll in the opposite direction, nothing happened).

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-03-04, 08:17 UTC
by macleod
I can confirm this. It seems like all the scroll notches from the list without the scrollbar stack in some buffer and when you move into the list with the scrollbar, they are released together with scroll notches made here. For example, +4 notches in the short list (no real move) and -1 scroll notch in the long list result in +3 scroll notches in the long list.

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-03-04, 11:34 UTC
by ghisler(Author)
I can reproduce it, but it seems to be a Windows bug - I don't think there is anything I can do to prevent it.

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-03-04, 14:20 UTC
by macleod
Maybe something in used libraries or maybe something new in windows. TC 8.01 x86 and x64 act the same way. Two windows of Explorer scroll the right way. Tried the small MyCommander and it scrolls in same folders the right way too.

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-03-04, 23:29 UTC
by petermad
I can reproduce it on Both Windows 7 and Windows 10, and all the way back to TC 6.55a - but not in TC 4.51 (I curently don't have any versions in between installed) - ocurs in both 32bit and 64bit TC.

I only happen if I do nOT focus (click on or tab to) the opposite panel.


EDIT:
I have now testet in TC 4.54 and 5.00 and it looks like the problem occurs the first time in TC 5.00 (5.00 came right after 4.54).

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-03-08, 10:41 UTC
by ghisler(Author)
Thanks, I will make a code comparison, maybe it will give me a clue.

Re: [TC 11.03]Mouse Scroll problem

Posted: 2024-04-16, 08:28 UTC
by ghisler(Author)
I have compared the code of 4.54 and 5.00 now, and found the reason for the problem: Version 5.00 is the first to include a "MANIFEST" resource:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly 
   xmlns="urn:schemas-microsoft-com:asm.v1" 
   manifestVersion="1.0">
<assemblyIdentity 
    processorArchitecture="x86" 
    version="5.1.0.0"
    type="win32"
    name="Windows.Wincmd32.exe"/>
    <description>Windows Commander 32</description>
    <dependency>
    <dependentAssembly>
    <assemblyIdentity
         type="win32"
         name="Microsoft.Windows.Common-Controls"
         version="6.0.0.0"
         publicKeyToken="6595b64144ccf1df"
         language="*"
         processorArchitecture="x86"/>
    </dependentAssembly>
    </dependency>
</assembly>
This tells Windows to use themed controls on Windows XP and newer.
The problem does not occur when I leave out the manifest resource and also remove the file TOTALCMD.EXE.MANIFEST.

So apparently it's a bug in the themed Windows listbox control. Therefore I will have to move this thread to the "will not be changed" forum because I cannot fix it myself.