[TC11b7] Too truncated file path in the dialog box

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

[TC11b7] Too truncated file path in the dialog box

Post by *AntonyD »

https://ibb.co/mBnzqHp
Here I tried to cancel the copy process and got this dialog. And got a few questions:
1) Why there are 2 areas with collapsed text, marked by ellipses inside the string and with red lines by me?
Yes, I understand that we must somehow to fit veeeeerrrry-loooong string into current size.
BUT! For this it should be enough to cut only MIDDLE part of the whole string! Not somewhere in it beginning,
not somewhere in the end. ONLY in the middle! And ONLY once!
2) Why tooltip was places so dooooown below? And not near the mouse cursor?

Suggestion: in this form we even could use multiline-label instead of the single-line as it is now! In this case (probably even in most cases) we would not even need hints and shortening of the text - we could see everything at once!
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11b7] Too truncated file path in the dialog box

Post by *ghisler(Author) »

I think I'm using DT_PATH_ELLIPSIS here for truncating. I will heck why it is so short, and why the tooltip is so far down.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC11b7] Too truncated file path in the dialog box

Post by *AntonyD »

Looks like bug is fixed now
But I really still don't understand = why the path gets TWO zones with ellipsis when trimmed - there should have been one enough - at the end of the line. But okay. let it be so. Now, in general terms, it looks quite nice and convenient.
Last edited by AntonyD on 2023-06-22, 10:47 UTC, edited 1 time in total.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11b7] Too truncated file path in the dialog box

Post by *ghisler(Author) »

That's the doing of the DT_PATH_ELLIPSIS parameter passed to DrawText: When the available space is too narrow, DrawText still draws too far with this parameter, so I now combine it with DT_END_ELLIPSIS to avoid any cut characters.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC11b7] Too truncated file path in the dialog box

Post by *AntonyD »

Ok, this one could be moved to Fixed section of the forum.
#146217 personal license
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC11b7] Too truncated file path in the dialog box

Post by *white »

Moderator message from: white » 2023-06-22, 12:52 UTC

Moved to Fixed bugs.
Post Reply