Recent

Author Topic: TShellListView a little over-zealous with "List"  (Read 4579 times)

QEnnay

  • Full Member
  • ***
  • Posts: 117
TShellListView a little over-zealous with "List"
« on: August 09, 2021, 04:53:16 pm »
I am not sure if this is a Linux thing, but when I use a TShellListView and set ViewStyle to vsList I get the same display as the vsReport just sans the Headings.

How can I nobble that to just see the file name?

I did some searching and found a "Delete-Column" discussion and I tried that. But it seems to delete all but the Size, or {gasp} Crash Cinnamon.

To wit: Left is vsReport and Right is vsList
« Last Edit: August 09, 2021, 04:55:37 pm by QEnnay »
Linux-Mint 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: TShellListView a little over-zealous with "List"
« Reply #1 on: August 09, 2021, 04:56:58 pm »
Does it work correctly in a TListView?

Bart

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: TShellListView a little over-zealous with "List"
« Reply #2 on: August 09, 2021, 05:37:29 pm »
On Windows it is working correctly with Laz-trunk/FPC 3.2.2, Laz2.2RC1/FPC3.2.2, Laz 1.8.4/FPC 3.0.4 (all 32 bit, trunk also 64 bit). It must be widget-set thing then... What widgetset are you using in Cinnamon? And of course: Always mention your Lazarus and FPC versions (along with bitness).

QEnnay

  • Full Member
  • ***
  • Posts: 117
Re: TShellListView a little over-zealous with "List"
« Reply #3 on: August 09, 2021, 09:30:16 pm »
Does it work correctly in a TListView?

Thanks, is there some sample code I can try? When I dropped one on a form and selected "vsReport" it does not show the headings as the Shell version does.

I just looked at TListView and cannot find a way to link it to a TTreeView and no idea on how to use that either.


Linux-Mint 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

QEnnay

  • Full Member
  • ***
  • Posts: 117
Re: TShellListView a little over-zealous with "List"
« Reply #4 on: August 09, 2021, 09:39:46 pm »
What widgetset are you using in Cinnamon?

Thanks, but no idea, but it is whatever comes with the stock Mint 20.1 Cinnamon.
Linux-Mint 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: TShellListView a little over-zealous with "List"
« Reply #5 on: August 09, 2021, 10:07:07 pm »
What widgetset are you using in Cinnamon?
Thanks, but no idea, but it is whatever comes with the stock Mint 20.1 Cinnamon.

Since Cinnamon (which is a Desktop Environment) is a fork of GNOME, you're most probably using the GTK2 Lazarus Widgetset, which also happens to be the default for Linux in Lazarus. Unless you have changed it in the project options, o.c. ;)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: TShellListView a little over-zealous with "List"
« Reply #6 on: August 09, 2021, 10:50:55 pm »
I checked the report on Ubuntu 21.04/gtk2 and can confirm the issue. And it also happens with a simple TListView.

As a workaround you could use the vsSmallIcon or vsIcon viewstyles; they only display the filenames, in a less compact layout, though.

QEnnay

  • Full Member
  • ***
  • Posts: 117
Re: TShellListView a little over-zealous with "List"
« Reply #7 on: August 10, 2021, 04:48:35 pm »
As a workaround you could use the vsSmallIcon or vsIcon viewstyles;

Thanks, I had already tried them and they take up way too much room per file.

I guess "the Tree+List components do not get much use as they are both unfinished.

Weird stuff like one uses FolderSort and the other uses SortType. Some uniformity would be good practice.
Path and PathName etc. Too many inconsistencies between them both. Look to be developed by 2-different people who never talk to each other. :D
Linux-Mint 20.1 x64 + Cinnamon; Lenovo Flex 5 Ryzen 5 4500, 16GB memory
FPC: 3.2.0-1, Lazarus 2.0.12-0, all 64bit

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: TShellListView a little over-zealous with "List"
« Reply #8 on: August 10, 2021, 07:27:25 pm »
Unfortunately changing that will not be backwards compatible  O:-)

Bart

 

TinyPortal © 2005-2018