TShellListView a little over-zealous with "List" lazarus / 21-General ---------------------------------------------------------------------- QEnnay · 2021-08-09 14:53 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 ---------------------------------------------------------------------- Bart · 2021-08-09 14:56 Does it work correctly in a TListView? Bart ---------------------------------------------------------------------- wp · 2021-08-09 15:37 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 · 2021-08-09 19:30 Quote from: Bart on August 09, 2021, 04:56:58 pmDoes 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. ---------------------------------------------------------------------- QEnnay · 2021-08-09 19:39 Quote from: wp on August 09, 2021, 05:37:29 pmWhat widgetset are you using in Cinnamon? Thanks, but no idea, but it is whatever comes with the stock Mint 20.1 Cinnamon. ---------------------------------------------------------------------- lucamar · 2021-08-09 20:07 Quote from: QEnnay on August 09, 2021, 09:39:46 pmQuote from: wp on August 09, 2021, 05:37:29 pmWhat 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. ---------------------------------------------------------------------- wp · 2021-08-09 20:50 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 · 2021-08-10 14:48 Quote from: wp on August 09, 2021, 10:50:55 pmAs 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. ---------------------------------------------------------------------- Bart · 2021-08-10 17:27 Unfortunately changing that will not be backwards compatible  Bart