MRT: Name in Dropdown for loading saved options is cut!

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
burg1
Junior Member
Junior Member
Posts: 30
Joined: 2007-07-10, 13:56 UTC

MRT: Name in Dropdown for loading saved options is cut!

Post by *burg1 »

Hi,

steps to reproduce:
  1. Save any multi-rename settings, using a long name.
  2. Maximize multi-rename-tool's window
  3. Open the dropdown-menu to load your saved entry: The list is expanded to the right (i.e. off the screen), resulting in your long name being cut off.
If you don't know what I mean, I can send you a screenshot.

Possible solutions:
Either make the list always expand to the left (there should always be enough space there). Or check for available screen space to decide if list is expanded left or right.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is done by Windows, not TC. I will check whether there is a function to make that right aligned, but probably not (or only for right to left languages). It wouldn't look nice either...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

As the dropdown menu width is exactly the same as the dropdown width there is no surprise that it's cut. Just aligning it differently wouldn't help. To solve this problem expand the dropdown menu width. This way the menu will automatically expand to the left in maximized state. There is a combobox message (CB_SETDROPPEDWIDTH) which does the job.

https://msdn.microsoft.com/en-us/library/windows/desktop/bb775901%28v=vs.85%29.aspx
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Lefteous
This isn't the problem here - TC already uses CB_SETDROPPEDWIDTH! The problem is that he has maximized the dialog (full screen), and the dropdown section is still left aligned. Since the combobox is on the far right of the dialog, the dropdown section stretches beyond the visible area of the screen.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Sorry you are right - expanding the width isn't enough. It seems you have to do the positioning stuff manually:
https://msdn.microsoft.com/en-us/library/ms996411.aspx

Maybe too much work for this issue?
burg1
Junior Member
Junior Member
Posts: 30
Joined: 2007-07-10, 13:56 UTC

Post by *burg1 »

If it's too cumbersome to fix it through Windows, my suggestion would be:
Just make the entire right section ("Define counter") responsive.

Details:
When enlarging the window, the other 3 sections (Rename mask, Extension, Search&Replace) expand. Just this one doesn't.
As a result, on today's large screens, if you maximize the window, everything is ridiculously long (e.g. some 60 characters for the extension), except "Load/save settings". In German, even the label "Lade/Speichere Einstellungen" is being cut off.
So just make that section enlarge too, and everything is fine :-)
Post Reply