Hi,
I am using B4XDialog And B4XDateTemplate for a date picker.
Now when the user clicks on a day it is apply as he press ok,
I would like to change that in a way that the user must click on ok button , in order to apply the date.
B4X:
Wait For (Dialog.ShowTemplate(DateTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
Log(DateTime.Date(DateTemplate.Date))
End If
Unzip XUI Views.b4xlib. Take B4XDateTemplate.bas. Rename it (MyDateTemplate.bas). Add to your project. Remove the Hide in line #133. Use MyDateTemplate instead of B4XDateTemplate.
Hello All, I am trying to restraint the period that the user has to pick some days and I am using the DatePickerDialog. However, to set minDate, MaxDate and SelectableDays I must enter the values in java.util.calendar format. How do I do that ? Dim today As Long = DateTime.Now Dim DP As...
www.b4x.com
I wonder if it is possible to make the change in the B4X Views library in a future update so it can be effective either by clicking the OK or not without having to modify the class. I think, it catches by surprise many users who are expecting an OK button to be clicked before the date is selected.