Need help. I don´t know why the thread doesn´t follow after clicking "ok" ....continuing after Wait for".....
B4XPage - Dialog - InputTemplate:
Base = Root
Dialog.Initialize (Base)
Dialog.Title = ""
InputTemplate.Initialize
InputTemplate.GetPanel(Dialog).SetLayoutAnimated(0, 10dip,100dip, 95%x, 20%y)
InputTemplate.lblTitle.Text = " CPF do cooperador (xxx.xxx.xxx/xx)"
InputTemplate.RegexPattern = "^([0-9]{2}[\.]?[0-9]{3}[\.]?[0-9]{3}[\/]?[0-9]{4}[-]?[0-9]{2})|([0-9]{3}[\.]?[0-9]{3}[\.]?[0-9]{3}[-]?[0-9]{2})$"
InputTemplate.TextField1.Width=90%x
InputTemplate.TextField1.SetTextAlignment("CENTER", "CENTER")
mask.Initialize( "Mask",InputTemplate.TextField1,"###.###.###-##")
Dim sf As Object = Dialog.ShowTemplate( InputTemplate, "OK", "CANCEL", "Entra c PIN")
Dialog.Base.Parent.Tag = ""
Dialog.Resize(100%x, 100%y)
Wait For (sf) Dialog_Result(Result As Int)
Log("Stop")
Last edited: