Re: TDateTimePicker and ShowCheckBox:=true bug under Vista

Giganews Newsgroups
Subject:Re: TDateTimePicker and ShowCheckBox:=true bug under Vista
Posted by: Pibì (nospam@tiscali.it)
Date:Mon, 19 Nov 2007

Remy Lebeau (TeamB) ha scritto:

>> SYSTEM_TIME is not empty when unchecking the box
>
> There you go then.  That is why the Checked property is not being cleared.
> This is now an API issue, not a VCL issue.

hmmm... on MSDN

http://msdn2.microsoft.com/en-us/library/bb761730.aspx

I haven't found any info about a SYSTEMTIME structure filled with
zero's. In fact, it's true with all Windows version, but not under
Vista. MSDN talk about dwFlags only.

IMHO Borland IsBlankSysTime() is a useless function... with this patch
in CNNotify(), control seems to works correctly

    else begin
      if FShowCheckbox and (dwFlags = GDT_NONE) then  {patch}
      // if FShowCheckbox and IsBlankSysTime(st) then {original}
    FChecked := False
      else if dwFlags = GDT_VALID then
      begin

ciao  Paolo

Replies

In response to

Re: TDateTimePicker and ShowCheckBox:=true bug under Vista posted by Remy Lebeau (TeamB) on Sun, 18 Nov 2007