Posts

Showing posts with the label LVS_EX_INFOTIP

TListview component in Delphi

Image
Using TListview component in Delphi. TListview TListView component is used to hold multiple items of various type. We can use TListview component to show Items in different view like items in Windows Explorer. When you want to show information in table-like manner, you might want to consider using TListView in vsReport style. The items in the list view can have one or more of the following appearance features: - A caption or detail text (for example, using the Item.Text bindable member of TListView) - An associated image (for example, using the Item.Bitmap bindable member of TListView) Defining Columns After changing the style to vsReport we need to define columns of our "table". In design time we use Columns Editor like shown below.     or     In runtime, you can add column using code like below. var   vNewColumn: TListColumn;   .. begin   ...   vNewColumn := ListView1.Columns.Add;   vNewColumn.Capt...