Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Differences in ShellListView in Delphi and Lazarus
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Feature announcement: Fun...
by
Thaddy
[
Today
at 12:41:10 pm]
504 Gateway Timeout
by
Fibonacci
[
Today
at 12:31:37 pm]
FPC 3.2.4-rc1 available
by
marcov
[
Today
at 12:29:32 pm]
Midi to Wav Converter
by
Thaddy
[
Today
at 12:28:47 pm]
FPC Unleashed (inline var...
by
Okoba
[
Today
at 12:13:20 pm]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[
Today
at 11:48:23 am]
AmigaOS can't run program...
by
Trenatos
[
Today
at 11:30:22 am]
Lazarus and FreePascal on...
by
jwdietrich
[
Today
at 10:44:37 am]
Space Duel
by
Tomi
[
Today
at 09:18:22 am]
Call the Llama.cpp dynami...
by
LeP
[
Today
at 09:11:38 am]
Is there a "known good" c...
by
Thaddy
[
Today
at 08:07:46 am]
Can I get the position an...
by
CM630
[
Today
at 07:29:22 am]
Little bit...
by
egsuh
[
Today
at 05:05:41 am]
Lazarus 4.6 on macOS 10.1...
by
wpostma
[
Today
at 03:30:20 am]
Forums were down, and are...
by
wpostma
[
Today
at 03:26:20 am]
Elite Arcade
by
domasz
[
Today
at 01:42:28 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
IDE Coolbar
by
Martin_fr
[April 20, 2026, 07:40:39 pm]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
Can /my/ AI help me with ...
by
domasz
[April 19, 2026, 07:23:35 am]
PasLLM - LLM Inference En...
by
Thaddy
[April 19, 2026, 06:57:20 am]
Amigo programming languag...
by
paxscript
[April 19, 2026, 06:32:55 am]
I hope FreePascal can sup...
by
Fibonacci
[April 19, 2026, 04:45:25 am]
Translate .lfm file in a ...
by
wp
[April 19, 2026, 01:40:24 am]
DataPort or Synpase stat...
by
mas steindorff
[April 19, 2026, 01:39:31 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Differences in ShellListView in Delphi and Lazarus (Read 3859 times)
JanRoza
Hero Member
Posts: 744
Differences in ShellListView in Delphi and Lazarus
«
on:
June 17, 2015, 12:22:55 am »
I used the following statement without errors in Delphi:
Code:
[Select]
iFileSize := CountSize(ShellListView1.Folders[i].PathName);
But in Lazarus it seems ShellListView has no Folders member, anyone know how to get the same result as above in Lazarus?
Logged
OS: Windows 11 / Linux Mint 22.3
Lazarus 4.6 RC FPC 3.2.2
CodeTyphon 8.90 FPC 3.3.1
Bart
Hero Member
Posts: 5713
Re: Differences in ShellListView in Delphi and Lazarus
«
Reply #1 on:
June 17, 2015, 12:02:00 pm »
What does CountSize do?
What are you rtying to achieve (I guess the total size a given folder takes on disk)?
In Delphi the shellcontrols are an interface to the OS, in Lazarus they are not (yet).
To get to Folders I guess you have to iterate through the Items property, and test wether it is a folder or a file.
You can use TFileSearcher to iterate over all files/folder and use the OnFileFound event to get the filesize of each found file.
Bart
Logged
JanRoza
Hero Member
Posts: 744
Re: Differences in ShellListView in Delphi and Lazarus
«
Reply #2 on:
June 17, 2015, 04:47:34 pm »
Hi Bart,
Correct, I'm trying to count the total size of everything selected in the shelllistview window.
I made a backup/restore program in Delphi which uses Abbrevia for compressed backups and a shelltreeview and shelllistview for uncompressed backups. In the Delphi version everything works as designed but in Lazarus I have quite some glitches I have to overcome. One is the different way the shellcontrols work and another one is that Abbrevia misses some visual components items (unless you use the CodeTyphon version) and it does not show the folder and file icons correctly in the treeview and listview. A pity as I wanted to make my backup program a part of the Lazarus/FreePascal showcase. Well to get a complete and correct working Lazarus version of this backup program will keep me out of the bar for the foreseeable future.
Logged
OS: Windows 11 / Linux Mint 22.3
Lazarus 4.6 RC FPC 3.2.2
CodeTyphon 8.90 FPC 3.3.1
Bart
Hero Member
Posts: 5713
Re: Differences in ShellListView in Delphi and Lazarus
«
Reply #3 on:
June 17, 2015, 05:10:52 pm »
I recently saw a thread that implemented folder/file icons for Lazarus shellcontrols, I think it was in this forum...
We need shellcontrols to be an interface to the OS, and that then must be cross-platform, which is gonna be a hell of a job.
Bart
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Differences in ShellListView in Delphi and Lazarus
TinyPortal
© 2005-2018