[BUG] history button doesn't show the history menu

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

[BUG] history button doesn't show the history menu

Post by *ts4242 »

if there is a very long path in the left/right history that cannot fit in one line, the history menu doesn't popup at all

the path length is vary depend on the screen resolution and the font size

here is an example in 800x600 and font size is 10

Code: Select all

[LeftHistory]
0=C:\
1=D:\
2=C:\123456789\123456789\123456789\123456789\123456789\123456789\123456789\123456789\123456789\123456789\12345\
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately this seems to be a general limitation of the Windows popupmenu. Any suggestions?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Any suggestions?
Shorten the path to fit the menu.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

you can use PathCompactPath function

but it seems to me that TC doesn't use shlwapi.dll library, if so, it is not difficult to emulate this function
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

It uses---

Post by *Clo »

2ts4242

:) Hello !
…but it seems to me that TC doesn't use shlwapi.dll library…
• Sorry, wrong. TC uses it. Simply run Process Explorer to check ;)

- It's used for the files sorting, and we had a nice surprise a long while ago about the natural sorting under Win 98,
Lefteous knows that very well…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

2Clo
Thanks, I missed it, maybe because TC not linked to shlwapi.dll directly but through Shell32.dll

so, things are easier now :lol:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I just tried it with very long paths both on XP and Win2k, but there was no problem, the menu always showed up. What Windows version are you using?
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

ghisler(Author) wrote:What Windows version are you using?
I'm using Win ME Version 4.90.3000 Build 3000
BTW: the problem is exist too in TC 6.55

I think it's better to truncate the long paths even if there no problem on XP
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

fixed in beta 3
Post Reply