1. Technology

ShellControls (TShellTreeView, TShellListView) In Delphi XE2 - ShellCtrls VS Vcl.Shell.ShellCtrls

By November 15, 2011

Follow me on:

in Delphi XE2 :: Delphi X2 has Vcl.Shell.ShellCtrls.pas but the Shell Controls package is not installed by default. There's ShellCtrls.pas and the packages to install in the samples folder (as before) - use it to manually install the "Shell Control Property and Component Editors" package.

Trick question: when you use any of the TSHellTreeView or TShellListView, what compiled (DCU) version of "shellctrls.pas" is used by Delphi XE2?

Read the full article to learn about Using Shell Controls in Delphi XE2 - Need My ShellCtrls.pas NOT Vcl.Shell.ShellCtrls.pas

Related:

Comments
November 15, 2011 at 1:27 pm
(1) Silver Warior says:

Why didn’t you just deriver your own component from default TShellListView and extend it’s functionality this way. This way you would have your own unit for your derivered component wich would load default ShellCtrls unit on its own.
Another advantage of using this approach is that you don’t directly tamper with source code of original component, and therefore there is no danger that your changes would make original component to malfunction in some way.

November 15, 2011 at 3:11 pm
(2) zarko gajic says:

@Silver: didn’t derive as my added property FolderList is only used to expose (read only) the private FFolders field.

Original component is available in the “samples” folder – therefore why not change it.

Previous Delphi version did not have ShellCtrls precompiled.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.