O'Reilly logo

Delphi Cookbook - Second Edition by Daniele Teti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing the TListView

As we have already said in the recipe, Using a styled TListView to handle long list of data, the TListView is the best control for handling long lists of data. We already know how to change the default style using the UpdateObjects event, however this approach lacks the Delphi RADness approach; no visual preview, no object inspector, no Visual LiveBindings, no live data. In this recipe we'll look at how to create a TListView style which can be installed in the Delphi IDE and used at design time in the object inspector and in the Visual LiveBindings designer.

Getting ready

TListView uses the Appearance Class to define how it looks at runtime. An Appearance Class is nothing more than a class derived from TAppearanceObjects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required