起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 141|回复: 4

【结帖】时间控件问题**

[复制链接]
发表于 2008-9-4 11:26:06 | 显示全部楼层 |阅读模式
我的时间空间其他地方都对 就是当12月的时候就不对了
代码是这样的
procedure TMAINFORM.FECalendar1DrawCellProperties(Sender: TObject; ADate: Double; AState: TFECalCellStates; var ALabel: string; CellProperties: TFECellProperties);
begin
  if DateUtils.MonthOf(ADate)=FECalendar1.Month then
  begin
    CellProperties.CaptionStyle := TFECapStyle.csNone;
    CellProperties.Color := Graphics.clInfoBk;
    CellProperties.Font.Color := Graphics.clGreen;
    CellProperties.Layout := TTextLayout.tlTop;
   // ALabel := GetDateStr(ADate);
      ALabel := '111';
  end;
end;

11.jpg

604.92 KB, 下载次数: 97

回复

使用道具 举报

 楼主| 发表于 2008-9-4 11:28:39 | 显示全部楼层
上面是正常的其他月


12月就会这样

22.jpg

659.12 KB, 下载次数: 96

回复 支持 反对

使用道具 举报

发表于 2008-9-4 17:18:26 | 显示全部楼层
if (not (TFECalCellState.csCaption in AState)) and (not (TFECalCellState.csNotInMonth in AState)) then
  begin
    CellProperties.CaptionStyle := TFECapStyle.csNone;
    CellProperties.Color := Graphics.clInfoBk;
    CellProperties.Font.Color := Graphics.clGreen;
    CellProperties.Layout := TTextLayout.tlTop;
   // ALabel := GetDateStr(ADate);
      ALabel := '111';
  end;
回复 支持 反对

使用道具 举报

发表于 2008-9-27 15:30:09 | 显示全部楼层
楼主反馈一下结果
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-8 13:55:05 | 显示全部楼层
不好意思  结了哈
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2025-7-22 17:58 , Processed in 0.043655 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表