I am attaching a Delphi control I sometimes use to replace TDatetimePicker.
There is a flaw: if the hosting form is minimized, the control calendar is not hidden (see the attached screenshots).
Please fix this behaviour.
Be sure to sign all the lines you edit or add.
The code works fine on Delphi v. 5 and should stay that way