B4J Question DatePicker

BeneBarros

Active Member
Licensed User
Longtime User
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.
 

inakigarm

Well-Known Member
Licensed User
Longtime User
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

Active Member
Licensed User
Longtime User
Don't know if I understand correctly your question; with (Erel's) DatePicker Class works fine (changing text -even without Enter- calls Event ValueChanged)
See this small example:
Delete or change the date in the text box and click the button.
 

Attachments

  • test.zip
    2 KB · Views: 289
Last edited:
Upvote 0

inakigarm

Well-Known Member
Licensed User
Longtime User
See this small example:
Delete or change the date in the text box and click the button.
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

Active Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…