Custom column size specefic for a resolution

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Custom column size specefic for a resolution

Post by *msrox »

My monitors at home and work have different resolutions. I set the column sizes fo right and left panel of TC when I am at home. When I get to work, they change as the resolution of my monitor at work is much higher. Then I have to set the sizes again and again when I get home!

Is there anyway to include the column size specifically for a resolution in wincmd.ini similar to other parameters like font size?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The column sizes are stored by resolution too. So for the first time it happens, use Configuration - Options - Tabstops - Default - OK to save them. You need to do this separately for each resolution. Or adjust them manually, and then use Configuration - Save position.
Author of Total Commander
https://www.ghisler.com
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

ghisler(Author) wrote:The column sizes are stored by resolution too. So for the first time it happens, use Configuration - Options - Tabstops - Default - OK to save them. You need to do this separately for each resolution. Or adjust them manually, and then use Configuration - Save position.
I have set two different customised culumn sizes for left and right panels. These configurations have different names of Right and Left.

When I search for them in wincmd.ini I find this:

Code: Select all

[CustomFields]
AutoLoad=0
Widths1=338,48,-58,-59
Headers1=Size\nDate
Contents1=[=tc.size.bytes]\n[=tc.writedate.yMD] [=tc.writetime.hms]
Options1=-1|0
Titles=Left|Right
Widths2=216,31,-59,-27
Headers2=Size\nDate
Contents2=[=tc.size.bytes]\n[=tc.writedate.yMD]
Options2=-1|0
How can I set different values for these customised configuration the left and right panels for each resolution?

Thanks in advance!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, custom columns are not by resolution. You could define two separate sets for each resolution, but this is of course far from optimal...
Author of Total Commander
https://www.ghisler.com
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

ghisler(Author) wrote:Sorry, custom columns are not by resolution. You could define two separate sets for each resolution, but this is of course far from optimal...
Thanks for your reply!
It would be great if I can define two separate sets for each resolution, but I don't know how! Coule you please explain?
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2msrox
I do understand that more columns make sense when using a higher resolution or maybe a more widescreen display.
What I don't get is that you want to change the (column?) sizes. As far as I know the sizes are defined in DLUs and this should adapt to the display resolution quite well.
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

Lefteous wrote:2msrox
I do understand that more columns make sense when using a higher resolution or maybe a more widescreen display.
What I don't get is that you want to change the (column?) sizes. As far as I know the sizes are defined in DLUs and this should adapt to the display resolution quite well.
I have two panles with the width of 60/40 percente of the screen. The left one is %60 and the right one is %40. I have also specified different content and size for the the columns of each panel.

Here is my setting from wincmd.ini:

Code: Select all

[CustomFields] 
AutoLoad=0 
Widths1=338,48,-58,-59 
Headers1=Size\nDate 
Contents1=[=tc.size.bytes]\n[=tc.writedate.yMD] [=tc.writetime.hms] 
Options1=-1|0 
Titles=Left|Right 
Widths2=216,31,-59,-27 
Headers2=Size\nDate 
Contents2=[=tc.size.bytes]\n[=tc.writedate.yMD] 
Options2=-1|0
Apparently the width of the columns are in absolute unit i.e. pixel or mm. Is there anyway to set them as pecentage of the panel width?
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2msrox
Apparently the width of the columns are in absolute unit i.e. pixel or mm. Is there anyway to set them as pecentage of the panel width?
No. This would make sense for some columns but not for all. Different kind of columns
1. Those containing a string which is has a variable width
2. Those having a more or less fixed width like date or size.

So for some columns a fixed width is fine for others it's too limited. For the name column there is a setting which takes 100% of the unused window width. This is fine but there might be other columns where more width would be meaningful.

So what I imagine is that the user starts defining width which are expected to be okay in all situations and resolutions (minimal widths). This would be the same as now. The next step would be to introduce a new feature that superseeds the existing setting to grow the name column to window width. For each columm (or preferred for all where it makes sense) the user may set a percentage (added together 100%) how much a column gets form a larger window size. The default would be the current behavior (100%) grow for the name column. Instead of percentages grow factors might be easier to handle.

It could look similar to this:
http://lefteous.totalcmd.net/tc/ideas/column_grow.png
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You could use different tabs with different custom columns at home and at work. Just save them to a file via right click on the tabs, e.g. home.tab and work.tab.

Then use two buttons to switch between the two:
OPENTABS c:\dir\home.tab
OPENTABS c:\dir\work.tab
Author of Total Commander
https://www.ghisler.com
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

Lefteous wrote:2msrox
Apparently the width of the columns are in absolute unit i.e. pixel or mm. Is there anyway to set them as pecentage of the panel width?
No. This would make sense for some columns but not for all. Different kind of columns
1. Those containing a string which is has a variable width
2. Those having a more or less fixed width like date or size.

So for some columns a fixed width is fine for others it's too limited. For the name column there is a setting which takes 100% of the unused window width. This is fine but there might be other columns where more width would be meaningful.

So what I imagine is that the user starts defining width which are expected to be okay in all situations and resolutions (minimal widths). This would be the same as now. The next step would be to introduce a new feature that superseeds the existing setting to grow the name column to window width. For each columm (or preferred for all where it makes sense) the user may set a percentage (added together 100%) how much a column gets form a larger window size. The default would be the current behavior (100%) grow for the name column. Instead of percentages grow factors might be easier to handle.

It could look similar to this:
http://lefteous.totalcmd.net/tc/ideas/column_grow.png
This is exactly what I need! Where did you get the snapshot from? Is there a version of TC to have this feature?
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

ghisler(Author) wrote:Sorry, custom columns are not by resolution. You could define two separate sets for each resolution, but this is of course far from optimal...
I'd like to do this, but don't know how! Please explain.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2msrox
Where did you get the snapshot from? Is there a version of TC to have this feature?
No, this is just a mockup I made to illustrate the idea :-)

Another idea adressing the 'not all columns fit on screen when using smaller resolutions' issue. Just could define a custom column view containing all required columns even if they don't fit on the screen. By arranging the less important colums more to the right they won't be shown on these smaller displays but work nicely on your larger display.
As a helper you could try custom tooltips that provide the missing information file by file.
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

Lefteous wrote:2msrox
Where did you get the snapshot from? Is there a version of TC to have this feature?
No, this is just a mockup I made to illustrate the idea :-)

Another idea adressing the 'not all columns fit on screen when using smaller resolutions' issue. Just could define a custom column view containing all required columns even if they don't fit on the screen. By arranging the less important colums more to the right they won't be shown on these smaller displays but work nicely on your larger display.
As a helper you could try custom tooltips that provide the missing information file by file.
Thanks for your reply and ideas.

ghisler(Author) mentioned that:
Sorry, custom columns are not by resolution. You could define two separate sets for each resolution, but this is of course far from optimal...
and I twice asked him how, but I haven't yet received any reply! do you know how I can do this?
User avatar
Dalai
Power Member
Power Member
Posts: 10024
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

2msrox
Just copy the existing set of custom columns and adjust the copy (column widths, contents and so on) to the larger screen resolution. There's even a "Copy" button in the custom columns configuration window (so it's really easy).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

Dalai wrote:2msrox
Just copy the existing set of custom columns and adjust the copy (column widths, contents and so on) to the larger screen resolution. There's even a "Copy" button in the custom columns configuration window (so it's really easy).

Regards
Dalai
I see! So, I should create different set of custom clumns through GUI and then everytime I change monitor change them manually by mouse, Am I right?

If so, is there any way to create buttons to set them for both panels by press of the button?
Post Reply