Sub btnTime_Click
InputTemplate.lblTitle.Text = "Enter time (HH:MM)"
' InputTemplate.RegexPattern = "^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$" '<---optional. Remove if not needed
Wait For (Dialog.ShowTemplate(InputTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
btnTime.xLBL.Text = InputTemplate.Text
End If
End Sub