[TC 11.03]Mouse Scroll problem

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Max33Verstappen
Junior Member
Junior Member
Posts: 23
Joined: 2019-10-21, 18:19 UTC

[TC 11.03]Mouse Scroll problem

Post 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).
macleod
Junior Member
Junior Member
Posts: 48
Joined: 2016-06-12, 07:32 UTC

Re: [TC 11.03]Mouse Scroll problem

Post 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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03]Mouse Scroll problem

Post 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.
Author of Total Commander
https://www.ghisler.com
macleod
Junior Member
Junior Member
Posts: 48
Joined: 2016-06-12, 07:32 UTC

Re: [TC 11.03]Mouse Scroll problem

Post 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.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03]Mouse Scroll problem

Post 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).
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03]Mouse Scroll problem

Post by *ghisler(Author) »

Thanks, I will make a code comparison, maybe it will give me a clue.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03]Mouse Scroll problem

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply