Page 1 of 1

One Thumbnail per line

Posted: 2013-05-13, 17:07 UTC
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.

Posted: 2013-05-14, 20:07 UTC
by JohnFredC
Such a layout in the lister would be very useful to me.

Posted: 2013-05-15, 21:19 UTC
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.

Posted: 2013-05-16, 08:39 UTC
by Lefteous

Posted: 2013-05-16, 14:06 UTC
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.

Posted: 2013-05-16, 14:24 UTC
by umbra
Therefore all the lines would have to use the larger height for the images.
I would actually prefer it that way.

Posted: 2013-05-16, 16:00 UTC
by Crisis
I would actually prefer it that way.
Me too... ;)

Posted: 2013-05-16, 18:18 UTC
by MVV
ghisler(Author),
Currently thumb mode uses same height too, so it is not a problem at all.

Posted: 2013-05-16, 20:37 UTC
by Lefteous
Of course all lines must have the same height. It's absolutely distracting to have different line heights.

Posted: 2013-05-17, 13:21 UTC
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

Posted: 2013-05-18, 09:31 UTC
by Hacker
I agree, all line heights should be the same.

Roman

One Thumbnail per line

Posted: 2013-05-19, 17:48 UTC
by Dennis41
This in my opinion would be a very useful feature. Also I vote for mp3 files to be supported in this way.

Re: One Thumbnail per line

Posted: 2013-05-20, 17:26 UTC
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.)

Re: One Thumbnail per line

Posted: 2013-05-20, 18:50 UTC
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.