BeneBarros Active Member Licensed User Longtime User May 18, 2017 #1 DatePicker If I change the date manually in the text box and click "TAB" or click another object is not called the dp_ValueChanged (Value As Long) function. When the change is made manually in the text box I must either type "Enter" or change by PopUp.
DatePicker If I change the date manually in the text box and click "TAB" or click another object is not called the dp_ValueChanged (Value As Long) function. When the change is made manually in the text box I must either type "Enter" or change by PopUp.
I inakigarm Well-Known Member Licensed User Longtime User May 18, 2017 #2 BeneBarros said: DatePicker If I change the date manually in the text box and click "TAB" or click another object is not called the dp_ValueChanged (Value As Long) function. When the change is made manually in the text box I must either type "Enter" or change by PopUp. Click to expand... Don't know if I understand correctly your question; with (Erel's) DatePicker Class works fine (changing text -even without Enter- calls Event ValueChanged) Upvote 0
BeneBarros said: DatePicker If I change the date manually in the text box and click "TAB" or click another object is not called the dp_ValueChanged (Value As Long) function. When the change is made manually in the text box I must either type "Enter" or change by PopUp. Click to expand... Don't know if I understand correctly your question; with (Erel's) DatePicker Class works fine (changing text -even without Enter- calls Event ValueChanged)
BeneBarros Active Member Licensed User Longtime User May 18, 2017 #3 inakigarm said: Don't know if I understand correctly your question; with (Erel's) DatePicker Class works fine (changing text -even without Enter- calls Event ValueChanged) Click to expand... See this small example: Delete or change the date in the text box and click the button. Attachments test.zip test.zip 2 KB · Views: 499 Last edited: May 18, 2017 Upvote 0
inakigarm said: Don't know if I understand correctly your question; with (Erel's) DatePicker Class works fine (changing text -even without Enter- calls Event ValueChanged) Click to expand... See this small example: Delete or change the date in the text box and click the button.
I inakigarm Well-Known Member Licensed User Longtime User May 18, 2017 #4 BeneBarros said: See this small example: Delete or change the date in the text box and click the button. Click to expand... Ok, sorry for the inconvenience. I've seen the difference now; I've tested the Datepicker class from Erel (https://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/#content) and you are using the DatePicker jFX object; with the class the behaviour is correct (check the example). Don't know if a possible solution is to add a Listener when lostfocus or text changed to Datepicker object Upvote 0
BeneBarros said: See this small example: Delete or change the date in the text box and click the button. Click to expand... Ok, sorry for the inconvenience. I've seen the difference now; I've tested the Datepicker class from Erel (https://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/#content) and you are using the DatePicker jFX object; with the class the behaviour is correct (check the example). Don't know if a possible solution is to add a Listener when lostfocus or text changed to Datepicker object
BeneBarros Active Member Licensed User Longtime User May 19, 2017 #5 inakigarm said: Ok, sorry for the inconvenience. I've seen the difference now; I've tested the Datepicker class from Erel (https://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/#content) and you are using the DatePicker jFX object; with the class the behaviour is correct (check the example). Don't know if a possible solution is to add a Listener when lostfocus or text changed to Datepicker object Click to expand... Okay ... I'll try to solve it by adding a LostFocus event. Or opt for the Erel Class. Thank you for your help.. Upvote 0
inakigarm said: Ok, sorry for the inconvenience. I've seen the difference now; I've tested the Datepicker class from Erel (https://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/#content) and you are using the DatePicker jFX object; with the class the behaviour is correct (check the example). Don't know if a possible solution is to add a Listener when lostfocus or text changed to Datepicker object Click to expand... Okay ... I'll try to solve it by adding a LostFocus event. Or opt for the Erel Class. Thank you for your help..