October 4th, 2012, 09:14 AM
ShowCheckbox in DBDateTimePicker
I need some help with DBDateTime control.
Is there anyway not to show the checkbox in the dbtimepicker and at the same
time being able to set time to 00:00:00 without getting the "You must be in
ShowCheckbox mode to set this value" error?
October 4th, 2012, 11:09 PM
There is no TDBDateTimePicker in Vcl.DBCtrls that can find.
Where is it?
If it is a third party component then you will probably get better help from the author than this forum.
As an off topic and unsolicited comment:
Except for read only display situations I usually find DB aware components more trouble than they are worth.
October 18th, 2012, 09:18 AM
Find the solutions of your problem.
Please find the answer of your problem
There is no TDBDateTimePicker in Vcl.DBCtrls that can find. It is a third party freeware component then you can download TDBDateTimePicker v.22.214.171.124 here. http://www.torry.net/pages.php?s=110 Then you have to create a component from dbdatetime.pas. After created a TDBDateTimePicker component, You can simply use component. Now problem is that set time to 00:00:00 on running time. So you have to miner change in DbDatatimePicker.pas file. Reach the
procedure Change; override; then do
if not(FDataLink.Editing) then
You have to comment ResetDateFormat function, It reset date also, thatís why itís gone to next date function.