Caption = "Double click on any of the records above to change the image"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H00800000&
Height = 435
Left = 4260
TabIndex = 11
Top = 4440
Width = 2655
End
Begin Label Label3
BackColor = &H00C0C0C0&
Caption = "List with pictures"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 240
TabIndex = 10
Top = 1320
Width = 1455
End
Begin Label Label2
BackColor = &H00C0C0C0&
Caption = "List with grid lines, horizontal scroll bar, and option to change a rows background color"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 435
Left = 4260
TabIndex = 9
Top = 1140
Width = 3615
End
Begin Label Label1
Alignment = 2 'Center
BackColor = &H00C0C0C0&
BackStyle = 0 'Transparent
Caption = "the ctLIST VBX is a virtual list box capable of displaying a variety of different images. The image, alignment, color, and text can all be declared as the control is being painted. Since a virtual list box does not directly store the data, it can display very large amounts of data. In this case, the control can display up to 32,767 records."
ForeColor = &H00800000&
Height = 825
Left = 360
TabIndex = 2
Top = 180
Width = 7635
End
Dim cString(20) As String
Dim nChecks(20) As Integer
Sub Command1_Click ()
Unload w_ctlist_demo
End Sub
Sub ctList1_GetText (ListIndex As Integer, Text As String, Picture As Integer, Alignment As Integer, BackColor As Long, ForeColor As Long)
Picture = ListIndex
Text = cString(ListIndex)
End Sub
Sub ctList2_DblClick ()
Dim nSel As Integer
nSel = ctList2.Selected + 1
If nSel > 0 Then
If nChecks(nSel) = 5 Then
nChecks(nSel) = 17
Else
nChecks(nSel) = 5
End If
ctList2.UpdateList = 0
End If
End Sub
Sub ctList2_GetText (ListIndex As Integer, Text As String, Picture As Integer, Alignment As Integer, BackColor As Long, ForeColor As Long)