Click or drag to resize

ListViewItem.StateImageIndex Property

X#
A numeric value that represents the index of the list view item's state image in the state image list.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL PROPERTY StateImageIndex AS USUAL GET SET 
Request Example View Source

Property Value

Type: Usual
A numeric value that represents the index of the list view item's state image in the state image list.
Remarks
A numeric value that represents the index of the list view item's state image in the state image list. State images are images that are drawn next to the item's main image.
Examples
X#
 1nCount := SELF:oDClvClaims:ItemCount
 2FOR x := 1 UPTO nCount
 3oLVI := SELF:oDClvClaims:GetItemAttributes(x)
 4IF oLVI != NULL_OBJECT
 5IF oLVI:Checked    // Using the "checkbox" property of a ListView set to YES
 6nValue := oLVI:GetValue( #dSvcDate )
 7SELF:oBillingsServer:GoTo( nValue )
 8// do some processing here
 9DO CASE
10CASE cClaims == "P"
11oLVI:StateImageIndex := 1    // ImageList was predefined in a PostInit() method
12CASE cClaims == "X"
13oLVI:StateImageIndex := 2
14CASE cClaims == "S"
15oLVI:StateImageIndex := 3
16ENDCASE
17SELF:oDClvClaims:SetItemAttributes(oLVI)
18ENDIF
19ENDIF
20NEXT x
See Also