Lister; mouse and line selection in binary view

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

Moderators: petermad, Stefan2, white, Hacker

Post Reply
browny
Senior Member
Senior Member
Posts: 408
Joined: 2007-09-10, 13:19 UTC

Lister; mouse and line selection in binary view

Post by *browny »

TC 11.56 64-bit in Windows 11 25H2
TC 11.55 64-bit in Windows Canary 26H1
Open a file, switch to Hex view.
Place mouse cursor to the left of the address in the first line.
That is, on the left of 00000000:.
Press and hold the left button, move the mouse down staying on the left side of the address column, and select some lines.
The last two bytes in each line would not be selected, both in binary and text.

Doing almost the same but on the right of the address column draws selection correctly.
Last edited by browny on 2026-02-14, 18:12 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16695
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister; mouse and line selection in binary view

Post by *petermad »

Open a file, switch to binary view
I think you mean Hex view?

Otherwise confirmed, but it is kind of random how many lines are affected, some times only the fist, sometimes several consecutive, and sometimes random
License #524 1994
Danish TC Translator
TC 11.57b1 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1405a
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
browny
Senior Member
Senior Member
Posts: 408
Joined: 2007-09-10, 13:19 UTC

Re: Lister; mouse and line selection in binary view

Post by *browny »

Corrected. Thanks, petermad.
User avatar
AntonyD
Power Member
Power Member
Posts: 1827
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Lister; mouse and line selection in binary view

Post by *AntonyD »

2browny
viewtopic.php?t=86519
Just read this and you'll catch yourself thinking it's the same thing: There is a MASSIVE problem of incorrect handling
of this data representation type. Your mistake is just a special case of a general problem.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51965
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister; mouse and line selection in binary view

Post by *ghisler(Author) »

Please start the selection either in the hexadecimal area or in the text area, and you will not have any problems. I will add some code to catch this.
Author of Total Commander
https://www.ghisler.com
yong
Member
Member
Posts: 119
Joined: 2009-05-20, 07:23 UTC

Re: Lister; mouse and line selection in binary view

Post by *yong »

ghisler(Author) wrote: 2026-02-15, 09:22 UTC Please start the selection either in the hexadecimal area or in the text area, and you will not have any problems. I will add some code to catch this.
Currently the cursor is shown as an I-shaped beam everywhere in the hexadecimal view, the user will assume that they can start a selection with the mouse wherever they want.

A better design is to follow the Windows norm: change the cursor to a regular arrow shape in the address area, so that no selection can be made; change the cursor to the beam when the mouse is moved to the hexadecimal or text area, where selection is possible.
User avatar
AntonyD
Power Member
Power Member
Posts: 1827
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Lister; mouse and line selection in binary view

Post by *AntonyD »

And an even better solution would be to use a completely different component - one that would have been developed
and maintained a long time ago. As it stands, the current implementation has all too obvious flaws and childish errors...
HEX browsing cannot be as simple as the current implementation tries to make it look.
#146217 personal license
browny
Senior Member
Senior Member
Posts: 408
Joined: 2007-09-10, 13:19 UTC

Re: Lister; mouse and line selection in binary view

Post by *browny »

ghisler(Author) wrote: 2026-02-15, 09:22 UTC Please start the selection either in the hexadecimal area or in the text area
In debugger it is commonly possible to copy data with addresses.
For Lister this might be too rare and specific thing, so I am not posting a feature request; but selection is expected to be drawn properly or there should be no selection at all if attempted in wrong area.
User avatar
white
Power Member
Power Member
Posts: 6422
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Lister; mouse and line selection in binary view

Post by *white »

browny wrote: 2026-02-15, 18:13 UTC .. but selection is expected to be drawn properly or there should be no selection at all if attempted in wrong area.
Did you miss this:
ghisler(Author) wrote: 2026-02-15, 09:22 UTC .. I will add some code to catch this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51965
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister; mouse and line selection in binary view

Post by *ghisler(Author) »

This should be fixed in Total Commander 11.57 beta 1, please check it!
15.02.26 Fixed: Lister, hex view: Starting selection by holding mouse down to the left of the hexadecimal values would result in wrong start position (32/64)
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16695
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Lister; mouse and line selection in binary view

Post by *petermad »

Confirmed fixed in TC 11.57b1 :-)
License #524 1994
Danish TC Translator
TC 11.57b1 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1405a
TC 3.62 on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 6422
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Lister; mouse and line selection in binary view

Post by *white »

petermad wrote: 2026-02-25, 18:24 UTC Confirmed fixed in TC 11.57b1 :-)
Confirmed.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51965
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Lister; mouse and line selection in binary view

Post by *ghisler(Author) »

Moderator message

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply