Private Sub lv_ItemClick (Position As Int, Value As Object)
Dim Row() As String
Row = Value
et.Text = Row(1)
et.SelectionStart = et.Text.Length
ime.HideKeyboard
lv.Visible = False
If SubExists(mCallback, mEventName & "_ItemClick") Then
CallSub2(mCallback, mEventName & "_ItemClick", Value)
End If
End Sub
Private Sub AddItemsToList(li As List, full As String)
If li.IsInitialized = False Then Return
Dim cs As CSBuilder
For i = 0 To li.Size - 1
Dim item As String = li.Get(i)
Dim x As Int = item.ToLowerCase.IndexOf(full)
If x = -1 Then
Continue
End If
cs.Initialize.Append(item.SubString2(0, x)).Color(highlightColor).Append(item.SubString2(x, x + full.Length)).Pop
cs.Append(item.SubString(x + full.Length))
'lv.AddSingleLine(cs)
Dim Row(2) As String
Row(0) = i
Row(1) = cs
lv.AddSingleLine2(cs,Row)
Next
End Sub