How to Add Icons to a List View

Previous Next

Icons or bitmap images are a standard feature of list view items.

To associate an icon or bitmap with each entry in a list view:

1.Make sure the Show Icons visual property for the list view is set to Yes (the default).
2.Add a column at the end of the SELECT list of the list view's SQL Query, and give it the LIST_IMAGE alias, for instance:

SELECT emp_name, emp_no, initials, title, dept, bitmap "LIST_IMAGE"

FROM emp

 

The name of the icon or bitmap image can be stored in the database table (as here in a column called BITMAP), or it can be a constant.