Questions tagged [tdatetimepicker]
13 questions
7
votes
1 answer
Why does TDateTimePicker.Checked return always True on Windows 7?
I have an application, built in Delphi 2007, with a TDateTimePicker on the form. This date time picker has the ShowCheckbox property set to True, which next to date or time displays a check box, that is automatically selected whenever a date is…

Re0sless
- 10,678
- 6
- 51
- 66
4
votes
2 answers
Show invalid dates as disabled in TDateTimePicker
I am using a TDateTimePicker to allow the user to select a day (either manually or by clicking buttons to go forward or back one day). The user will then see log entries for that particular day.
The control works great, but I want to restrict the…

AlainD
- 5,413
- 6
- 45
- 99
2
votes
1 answer
TDatetimePicker format shows wrongly
If i set the property "format" of a TDateTimePicker component (Delphi XE10) eg. ddd d/m/yyyy then it shows Tue 14/47/2016 !! and the date 31/12/2016 as 31/0/2016 !
what is happening, please ?

JimPapas
- 715
- 2
- 12
- 27
2
votes
2 answers
TDateTimePicker MaxDate - does not allow setting control to current date
I have set standard VCL TDateTimePicker - MaxDate property to Date - e.g.
DTPicker.MaxDate := Date;
However, there is a problem. If I now set the date to be the current one:
DTPicker.Date := Date;
It will not accept it. The control simply stays at…

Coder12345
- 3,431
- 3
- 33
- 73
2
votes
1 answer
TDateTimePicker is missing OnDblClick event with DELPHI XE2
apologize if this question sounds somewhat stupid, but with XE2, i can see that the OnDblClick event of the TDateTimePicker seems to be missing from the list of events.
Is it really the case? Here is how i proceed:
I start a new VCL application …

Nabil
- 1,175
- 2
- 13
- 29
2
votes
2 answers
Delphi TDateTimePicker issue, "failed to set min/max range"
A few users of an app of mine are having a weird issue, on start-up they get an Exception with the datitimepickers which have a predetermined min/max date set to 01 Jan 1950 - 31 Dec 2050.
The default error message thrown by the app is
"Error…

hikari
- 3,393
- 1
- 33
- 72
1
vote
2 answers
Trigger enable TButton with the pick of two (2) dates in TDateTimePickers
I have TButton set "not enabled" that should be triggered enabled by the two (2) TDateTimePickers when both dates are picked.
My TDateTimePicker dates are defaulted at a now() date. So, at OnChange, I created the following codes and I couldn't get…

Juke
- 135
- 2
- 9
1
vote
1 answer
Returning focus to first part of Delphi TDateTimePicker control
After the focus leaves a TDateTimerPicker control and then at a later time returns to it, the control remembers which part (day, month or year) had the focus. Focus is returned to that part.
How can I force the focus back to the first per of the…

srayner
- 1,799
- 4
- 23
- 39
1
vote
1 answer
Delphi TDateTime Bold days with TMonthCalendar
I am currently creating a program with Delphi (Professional, Version 7.0; Build 4.453).
Originally, I wanted to bold some dates in the TDateTimePicker dropdown calendar; but I quickly found out that I couldn't - so I'm trying to overlap a…

jsp
- 11
- 1
- 2
0
votes
0 answers
Delphi XE7 TdateTimePicker missing weekdays on Windows 10 when style other than Windows
What can cause this weird behaviour? Calendar does not show Monday and Sunday when style is other than Windows.
Delphi XE7 + Windows 10 (polish version tested).

Jacek U
- 53
- 9
0
votes
1 answer
How to change date in onChangeEvent?
I need to react at TDateTimePicker.OnChangeEvent on date change. Display dialogs like "Unsaved changes will be lost" with buttons OK, Cancel. If the user press Cancel button I want to reset back the original date.
Unfortunatelly I can't change the…

Vlada
- 559
- 2
- 11
- 27
-1
votes
1 answer
How do I set the current time in Embarcadero's DateTimePicker?
I am using Embarcadero's C++Builder 10.2 and a TDateTimePicker control. I have been trying to find a way to set the picker's date to today's date every time I create this Form. So far, I have been unsuccessful. If I try the example given using…

user427921
- 21
- 4
-2
votes
1 answer
TDateTimePicker looks ugly with VCL Styles Hooks
in the IDE the TDateTimePicker looks quite well, and it has a calendar icon.
However, with VCL Style Hooks, there is no icon and the dropdown button looks quite ugly. See the VCL Hooks demo app.
In the IDE it looks like:
With VCL styles it looks…

BavDev
- 1
- 1