One Thumbnail per line

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Crisis
Junior Member
Junior Member
Posts: 20
Joined: 2003-05-29, 11:30 UTC

One Thumbnail per line

Post by *Crisis »

This is a exemple for a picture file :

Image: http://peter.mathias.free.fr/Total/Total.gif

And maybe for MP3 file. Total Commander use for Thumbnail a "folder.jpg" file on the directory.
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Such a layout in the lister would be very useful to me.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

I would like that too.
Currently I don't use the thumbnail mode very often, because it has a completely different layout than the standard mode. I have to set very big thumbnail size so I can see files' full names. Also, there is a different cursor navigation, not really compatible with my preferred SpecialCursorMovement=2.
This kind of layout would suit my needs much better.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

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

Post by *ghisler(Author) »

That's actually what the Android version does. Unfortunately it's not possible on Windows to create a listbox where the height of a line changes. Therefore all the lines would have to use the larger height for the images.
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Therefore all the lines would have to use the larger height for the images.
I would actually prefer it that way.
Windows 10 Pro x64, Windows 11 Pro x64
Crisis
Junior Member
Junior Member
Posts: 20
Joined: 2003-05-29, 11:30 UTC

Post by *Crisis »

I would actually prefer it that way.
Me too... ;)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler(Author),
Currently thumb mode uses same height too, so it is not a problem at all.
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Of course all lines must have the same height. It's absolutely distracting to have different line heights.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

ghisler(Author) wrote:Unfortunately it's not possible on Windows to create a listbox where the height of a line changes. Therefore all the lines would have to use the larger height for the images.
Please try the following:

Code: Select all

unit Unit1;

interface

uses
  Classes, Controls, Forms, StdCtrls;

type
  TForm1 = class(TForm)
    ListBox1: TListBox;
    procedure FormCreate(Sender: TObject);
    procedure ListBox1MeasureItem(Control: TWinControl; Index: Integer; var Height: Integer);
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.FormCreate(Sender: TObject);
begin
  {You may set this also in the Property Editor}
  ListBox1.Style:=lbOwnerDrawVariable;
  ListBox1.OnMeasureItem:=ListBox1MeasureItem;

  ListBox1.Items.Add('aaa');
  ListBox1.Items.Add('bbb');
  ListBox1.Items.Add('ccc');
  ListBox1.Items.Add('ddd');
  ListBox1.Items.Add('eee');
end;

procedure TForm1.ListBox1MeasureItem(Control: TWinControl; Index: Integer; var Height: Integer);
begin
  Height:=10+Random(50);
end;

end.
Regards
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I agree, all line heights should be the same.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

One Thumbnail per line

Post by *Dennis41 »

This in my opinion would be a very useful feature. Also I vote for mp3 files to be supported in this way.
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Re: One Thumbnail per line

Post by *umbra »

Dennis41 wrote:Also I vote for mp3 files to be supported in this way.
What do you mean? The only thing that comes to my mind is an embedded album image. Does Explorer show them as thumbnails? (I don't know, 'cause I don't have such files.)
Windows 10 Pro x64, Windows 11 Pro x64
Dennis41
Junior Member
Junior Member
Posts: 14
Joined: 2013-05-18, 13:24 UTC

Re: One Thumbnail per line

Post by *Dennis41 »

Not necessarily with the pictures (of embedded album images) but it would be nice if pictures could be included. Primarily I meant the native support of mp3, flac, ogg. And to be presented in the similar way as Crisis presented above.
Post Reply