| Subject: | Re: TDateTimePicker and ShowCheckBox:=true bug under Vista |
| Posted by: | Pibì (nospam@tiscali.it) |
| Date: | Sat, 17 Nov 2007 |
Remy Lebeau (TeamB) ha scritto:
> Did you verify that the control is receiving the DTN_DATETIMECHANGE
> notification when unchecking the box?
yes, notification is fired
> If so, then is the actual value of
> the provided SYSTEM_TIME record empty like it should be, and is the
> ShowCheckbox property still True at the time?
SYSTEM_TIME is not empty when unchecking the box
procedure TDateTimePicker.CNNotify(var Message: TWMNotify);
...
if FShowCheckbox and IsBlankSysTime(st) then
FChecked := False
st is filled with current control date/time, IsBlankSysTime return false
and FCkecked remains true. FShowCheckbox is always true.
Only with vista and runtime themes enabled. If try this with vista and
runtime themes disabled, or under xp, all works correctly.
ciao Paolo
Re: TDateTimePicker and ShowCheckBox:=true bug under Vista posted by Remy Lebeau (TeamB) on Fri, 16 Nov 2007