...
dialog.Title = IIf(bKedv,"Nyugtavégi kedvezmény","Borravaló")
Dim p As B4XView = XUI.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 100%x, 150dip)
p.LoadLayout("szamlavegiKedvezmenydlg")
lblDialogHeader.Text = IIf(bKedv,"Megadhat kedvezményt a teljes nyugtára!","Adja meg a borravaló mértékét!")
edtDlgValue.Text = NumberFormat2(szlengedmeny,1,2,0,False)
Private ime As IME
ime.Initialize("xx")
ime.ShowKeyboard(edtDlgValue)
'ime.SetLengthFilter(edtDlgValue,3)
edtDlgValue.RequestFocus
edtDlgValue.SelectAll
cmbDlgAfter.mBase.Visible = True
If bKedv Then
cmbDlgAfter.SetItems(Array As String("%","HUF"))
Else
cmbDlgAfter.SetItems(Array As String("%","HUF","FELKEREKÍT"))
End If
cmbDlgAfter.SelectedIndex = szlakedvsz
ime.SetCustomFilter( edtDlgValue, edtDlgValue.INPUT_TYPE_NUMBERS, "1234567890")
dialog.PutAtTop = True 'put the dialog at the top of the screen
Wait For (dialog.ShowCustom(p, "OK", "", "MÉGSE")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
...