Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 300dip, 150dip)
p.LoadLayout("CustomerDataDialog")
If Dialog.IsInitialized = False Then Dialog.Initialize(Root)
Dialog.Title="Please enter the required data first"
Dim t1 As EditText
t1=etFirst.TextField
If t1.IsInitialized = False Then t1.Initialize("t1")
IMA.SetCustomFilter(t1,t1.INPUT_TYPE_NUMBERS,"0123456789")
Dim t2 As EditText
t2=etSecond.TextField
If t2.IsInitialized = False Then t2.Initialize("t2")
IMA.SetCustomFilter(t2,t2.INPUT_TYPE_NUMBERS,"0123456789-")
Dialog.PutAtTop = True 'put the dialog at the top of the screen
Wait For (Dialog.ShowCustom(p, "OK", "", "CANCEL")) Complete (Result As Int)