Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-01

TDateEdit.Clear and DefaultToday: bug or expected behaviour?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexsander Rosa

With DefaultToday = false, TDateEdit.Clear clears the edit and sets Date to 1899-12-30.
With DefaultToday = true, TDateEdit.Clear clears the edit and sets Date to TODAY.
IMHO, the edit on screen should display the content of the Date property all times.
Thus, with DefaultToday = true, the TDateEdit.Clear shoud display TODAY instead of blank.
Or maybe TDateEdit.Clear should set 1899-12-30 regardless of DefaultToday property?

Atenciosamente, Alexsander da Rosa -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140110/7e5553e3/attachment.html>

Reply by email