Sub lbl_LongClick
Dim index As Int
index = clv1.GetItemFromView(Sender)
Dim pnl As Panel
pnl = clv1.GetPanel(index)
Dim lbl As Label
lbl= pnl.GetView(0)
' Msgbox(clv1.GetValue(index), "Rename ?")
'Message box
Dim DR As Int
Log("DR=" & DR)
Dim IP As BD_InputBoxParams
IP.Initialize
IP.Question = "<I>Rename Relais 1? </I>"
IP.QuestionTextSize = 18
IP.SpaceBetween = 4dip
IP.InputTextSize = 24
IP.InputType = IP.INPUT_TYPE_TEXT_WITH_CAPS
IP.Gravity = Gravity.CENTER_VERTICAL + Gravity.CENTER_HORIZONTAL
IP.ValidationCallback = "Input_Validation"
IP.WithSuggestions = True
DR = BD.InputBox("New Name", IP, "OK", "Cancel", "", LoadDrawable("ic_menu_edit"))
Log("DR=" & DR)
If DR = DialogResponse.POSITIVE Then
Log(IP.Answer)
Log(IP.CompactAnswer)
lbl.Text = IP.Answer
Else
End If
Dim btnOK As Button
btnOK.Initialize("")
btnOK.Background = CreateStateListDrawable
btnOK.Text = "<Font Color='Yellow'>O</Font>K"
btnOK.TextColor = Colors.White
Dim btnCancel As Button
btnCancel.Initialize("")
btnCancel.Text = "<Font Color='Yellow'>C</Font>ancel"
btnCancel.TextColor = Colors.White
btnCancel.Background = CreateStateListDrawable
End Sub