Android Question Dll problems with IME

desof

Well-Known Member
Licensed User
Longtime User
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?



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
 

bgsoft

Well-Known Member
Licensed User
Longtime User
Hola Miguel:

El problema está claro, tu pones que filtre las letras ABC, y eso es lo que hace. Si quieres poder escribir todas, ponlas todas, ejemplo:


Tu codigo
B4X:
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABC")


Nuevo codigo:
B4X:
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz")

Saludos

____________________________________________________________________________

In English

Hi Desof:

The problem is clear, you put that filters the letters ABC, and that's what he does. If you want to write them all, put them all, eg

your code
B4X:
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABC")


new code:
B4X:
im.SetCustomFilter(txBuscar, txBuscar.INPUT_TYPE_TEXT , "ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz")


regards
 
Last edited:
Upvote 0
Top