Delphi ShellListview sort

[ DelphiLand FAQ ]

Posted by webmaster Guido on November 25, 2004 at 17:47:52:

In Reply to: Re: Sorting Delphi's ShellListview by clicking column posted by creeek on November 25, 2004 at 17:13:22:

: I thought originally this may be over my head! But, I think I do understand it, but the only ShellCtrls.pas file I could locate was in the Demos\ShellControls folder. I renamed this file, to prove I was using the correct file and it made no difference, the project compiles quite happy :(
: I can only assume its built into a package of some kind. I even tried closing delphi and re-opening, no difference.
: But, your instructions were very good, had I found the right file, I would have tried it!!
: Thanks for trying.

You found the correct file :) but you have to reinstall the package that contains the shell controls. Try the following:
1. In Delphi, uninstall the packages vclshlctrls and dclshlctrls
2. Modify ShellCtrls.pas as per my previous message
3. Reinstall package vclshlctrls
4. Reinstall package dclshlctrls

webmaster Guido

Related Articles and Replies

[ Delphi Forum -- by DelphiLand ]