现有数量跟最大数量和最小数量比较 改变 计划采购量里面的颜色
解决方案 »
- 如何引用data module
- 请推荐一个条码打印控件,我用的是zebra打印机
- 我查看了一下,这个opengl的glColor4f函数是设置透明的,可为什么不起作用呢?下面是我的一段程序.
- 急需以下程序,望哪位仁兄提供源码!
- 如何解决delphi编写的遍历进程程序一直遍历进程造成内存过高
- TADOQuery怎样指向dbgrideh的当前行???
- 有关检查sql server的服务状态跟检查映射的硬盘空间的问题,急……
- ontimer和其他事件是不是并行的?
- D5编了一个MP3播放器,但是在我安装了东方影都后就再了不能播放了,提示 ‘无法初始化设备驱动程序’
- 各位大虾好,不知谁有用DELPHI做得比较好的程序,没有源码也可,因为我想看看DELPHI出色在那里?
- 乱码文件里查找指定字符串的大难题。求大神~
- 程序功能失效后,如何重新载入这一段代码?
ARow: Integer; Rect: TRect; State: TGridDrawState);
begin if (ARow=行) and(ACol=列) then
begin
with sGrid do
begin
//设置颜色
Canvas.Brush.Color := RGB(227,249,248);
Canvas.TextRect(rect,rect.Left+2,rect.Top+2,Cells[acol, arow]);
Canvas.FrameRect(Rect);
end;
end;
end;
const Rect: TRect; DataCol: Integer; Column: TColumnEh;
State: TGridDrawState);
var
Times1,vMax:Real;
begin
inherited;if (Column.FieldName='BFCount') or (Column.FieldName='CCCount') then
begin
if (QueryBill1.FieldByName('BFCount').AsFloat=0) or (QueryBill1.FieldByName('CCCount').AsFloat=0) then
Exit;
Times1:=Abs(QueryBill1.FieldByName('BFCount').AsFloat - QueryBill1.FieldByName('CCCount').AsFloat);
vMax:= Max(QueryBill1.FieldByName('BFCount').AsFloat , QueryBill1.FieldByName('CCCount').AsFloat); if (vMax>0) and (Times1/vMax>0.1) then
begin
SHDBGridEh1.Canvas.Font.Color:=$002209D2;
end;
SHDBGridEh1.DefaultDrawColumnCell(Rect, DataCol, Column, State);
end;
end;