Sign in Join

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

Mailing lists / lazarus / 2017-01

About TDateEdit

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

José Mejuto

Hello,

I have two questions about TDateEdit.

1) This control when created in the form the "Date" property is "NullDate", but as soon as I try to enter something (like a "1") and then erase it I can not recover the "NullDate" value (AKA zero). For my needs I subclassed it to check against "" on exit and set date to "NullDate" value. Is current behavior expected ?

2) When you do not write a complete date, so you write something like "1" and press tab, the control text property value is the "1" but "Date" property is updated to "01/01/2017" which IMHO is a bit counterintuitive. For my needs in my subclass, on exit I just set "Control.Date:=Control.Date" which forces a full date expansion in the text box.

Saludos, José Mejuto

Reply by email

José Mejuto
to Alexey
Alexey wrote 6 lines
I posted the pch to Mantis, which addresses this issue. > to check against "" on exit and set date to "NullDate" value. Is > current behavior expected ?

Hello,

Thank you, but and the other one? No full date on exit ? Is it expected to work in this way or a patch should be submitted ?

Saludos, José Mejuto

Reply by email