[教程]为 TDateTimePicker 增加日期时间类型支持(来自LakeView)

1、找到 VCL.ComCtrls.pas 单元

2、修改 TDateTimeKind 类型,增加 dtkDateTime,以便支持日期时间类型。

TDateTimeKind = (dtkDate, dtkTime, dtkDateTime);

3、找到 TDateTimePicker.CNNotify 函数,在  DT:=SystemTimeToDateTime(st); 后增加

if Kind = dtkDateTime then
SetDateTime(DT)
else

然后就可以了。


Warning: Undefined variable $post_id in /www/qdac.cc/wp-content/themes/minty/functions.php on line 460

Warning: Undefined array key 0 in /www/qdac.cc/wp-content/themes/minty/functions.php on line 364
分享到:

0 条评论

沙发空缺中,还不快抢~