I have this piece of code and something must be wrong that happens once you select option 2 (im.SetCustomFilter (txBuscar, txBuscar.INPUT_TYPE_NUMBERS, "0123456789."))
I'll be expected as the keypad.
But then if I try to search for text not let me write to the supplied text field ..
Why?
I'll be expected as the keypad.
But then if I try to search for text not let me write to the supplied text field ..
Why?
B4X:
Sub buscar_ItemClick (Position As Int, Value As Object)
Dim im As IME
im.AddHandleActionEvent(txBuscar)
txBuscar.Text=""
Select Position
Case 0
btBuscar.Tag= "nombre"
lbAviso.Text ="Nombre o parte de él, (ej. 'Lop' devuelve Lopez)"
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABC")
Case 1
btBuscar.Tag= "domicilio"
lbAviso.Text ="Calle o parte de ella, (ej. 'saav' devuelve Saavedra)"
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABC")
Case 2
btBuscar.Tag= "telefono"
lbAviso.Text ="Número o parte de él, (ej. '4239' encuentra 423925)"
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_NUMBERS, "0123456789.")
Case 3
Utiles_Click
End Select
im.ShowKeyboard (txBuscar)
End Sub