Programming Guide : 7. Working with List Views and Tree Views : Listview Fields : Listview Field Styles
 
Share this page                  
Listview Field Styles
You can experiment with various field styles by selecting different styles from the Style menu of the listview_example. The Style attribute of a listview field determines how the listview is displayed. The possible styles are:
LVFS_DETAIL
Specifies that the data should be displayed in columns
LVFS_LIST
Specifies that only the values from the first column of the detail view (EnumDisplay) should be displayed. The data is arranged in columns, and ordered so that you read from top to bottom of the first column and then continue to read from top to bottom of all subsequent columns, left to right.
LVFS_ICON
Specifies that the data should be displayed with large icons (bitmaps). Only the values from the first column of the detail view are displayed. The data is arranged in rows so that you read across the first row, then across the second row, and continue to read across subsequent rows, top to bottom.
LVFS_SMALLICON
Specifies that the data should be displayed with small icons (bitmaps). Only the values from the first column of the detail view are displayed. The data is arranged in rows so that you read across the first row, then across the second row, and continue to read across subsequent rows.
The sizes of the icons are determined by the following listview field attributes:
SmallIconHeight with a default of 16
SmallIconWidth with a default of 16
LargeIconHeight with a default of 32
LargeIconWidth with a default of 32