Recent

Author Topic: datetimepicker - How to finish selecting a date before it leaves the calendar  (Read 3341 times)

JanRoza

  • Hero Member
  • *****
  • Posts: 605
    • http://www.silentwings.nl
Is there a way to prevent tdatetimepicker (and tdbdatetimepicker) leaving the calendar view before I've finished selecting my date?
If I want to select a different year before selecting a month and day the component always leaves the calendar after I select a year and I have to re-enter the calendar to select the rest of my date.
Is there an option to prevent this?
Is it possible to let the calendar have an OK button to confirm my selection and only leave the calendar after clicking this OK button? (maybe this is a new feature request)
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.3 FPC 3.3.1

GetMem

  • Hero Member
  • *****
  • Posts: 3871
You did not specify the OS, but I can confirm the behaviour under windows. More over, I tested with delphi and the calendar doesn't close on year change, so this is a bug and it should be reported.
« Last Edit: February 21, 2016, 07:47:30 pm by GetMem »

JanRoza

  • Hero Member
  • *****
  • Posts: 605
    • http://www.silentwings.nl
Sorry forgot to mention I used Lazarus 1.6 under Windows 10.
I've just submitted a bug report.
« Last Edit: February 21, 2016, 09:46:49 pm by JanRoza »
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.3 FPC 3.3.1

Bart

  • Hero Member
  • *****
  • Posts: 4170
    • Bart en Mariska's Webstek
Already reported: http://bugs.freepascal.org/view.php?id=29646.

See my comments in that report.

Use a TDateEdit instead. It will only close if you double-click, not on a single click.

Bart

 

TinyPortal © 2005-2018