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 ...

Get Delphi Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.