Hello there!
I'm using this Dialog library to pop-up some InputDialog.
Those dialogs are shown when the user wants to edit some data in the app.
The actual value is shown in a Label.
When the InputDialog is called, I managed to show in the edit text area the actual value of the linked Label, but the cursor is at the very beginning of the text and I'd like to move it to the end...or even have the text fully selected.
Whatever the case, I can't find a way to do it.
Should I use a CustomDialog, maybe?
I'm using this Dialog library to pop-up some InputDialog.
Those dialogs are shown when the user wants to edit some data in the app.
The actual value is shown in a Label.
When the InputDialog is called, I managed to show in the edit text area the actual value of the linked Label, but the cursor is at the very beginning of the text and I'd like to move it to the end...or even have the text fully selected.
Whatever the case, I can't find a way to do it.
Should I use a CustomDialog, maybe?
B4X:
Dim id As InputDialog
id.InputType = 0x00000003
If kvs.Get("Tel") <> Null Then
id.Input = kvs.Get("Tel")
End If
Dim ev As Object = id.ShowAsync("", "Numero di telefono:", "Ok", "", "Annulla", Null, False)
Wait For (ev) Dialog_Result(Result As Int)
If Result = DialogResponse.POSITIVE Then
kvs.Put("Tel",id.Input.Trim)
lblTel.Text = kvs.Get("Tel")
End If