View
property for PowerScript controls
Applies to
ListView controls
Description
A ListView has four ways to display its items:
-
Large icon view
Items are arranged from left to right and the user can move
items around when drag and drop is enabled. Each item’s picture is
taken from the large picture list, and the item label is below the
picture. -
Small icon view
Same as large icon view except each item’s picture is taken from
the small picture list, and the item label is to the right of the
picture. -
List view
Items are arranged from top to bottom. Each item’s picture is
taken from the small picture array. -
Report view
Items are arranged from top to bottom with one or more columns
of information for each item. You must write a script to set up the
columns.
Usage
In a painter
To select the view type:
-
Select the desired view type from the View drop-down list on the
General page of the control’s Properties view.
In scripts
The View property takes a value of the ListViewView enumerated
datatype.
The following line specifies that small pictures appear for the
items in the ListBox:
|
1 |
lv_1.View = ListViewSmallIcon! |