#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,055
    Rep Power
    383
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2011
    Posts
    140
    Rep Power
    0

    Find the solutions of your problem.


    Hi

    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.1.6.1.0 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
    Procedure TDBDateTimePicker.Change;
    Begin
    if not(FDataLink.Editing) then
    FDataLink.Edit;
    FDataLink.Modified;
    // ResetDateFormat;
    inherited;
    End;

    You have to comment ResetDateFormat function, It reset date also, thatís why itís gone to next date function.

    Thanks
    Diya

IMN logo majestic logo threadwatch logo seochat tools logo