procedure TCheckThread.SetLineColor(ALBox: TListBox; AColor: TColor;
AIndex: integer);
var
Rect: TRect;
begin
Rect := ALBox.ItemRect(AIndex);
with ALBox do
begin
Canvas.FillRect (Rect);
Canvas.Font.Color := AColor;
Canvas.TextOut(Rect.Left,Rect.Top, ALBox.Items[AIndex]);
end;
end;我用上述函数来设置 listbox 指定条目的颜色,但是当 listbox 滚动(翻页),那些自绘的颜色不能保存,又变成默认颜色了。谁帮看看,怎么解决?!
AIndex: integer);
var
Rect: TRect;
begin
Rect := ALBox.ItemRect(AIndex);
with ALBox do
begin
Canvas.FillRect (Rect);
Canvas.Font.Color := AColor;
Canvas.TextOut(Rect.Left,Rect.Top, ALBox.Items[AIndex]);
end;
end;我用上述函数来设置 listbox 指定条目的颜色,但是当 listbox 滚动(翻页),那些自绘的颜色不能保存,又变成默认颜色了。谁帮看看,怎么解决?!
解决方案 »
- 讓得delphi的ADOCommand的CommandText是可以一次執行多個SQL語句的,如selet .... delete ....兩條語句,但在delphi7下卻測試不通過。
- 怎样地Memo中屏蔽掉右键弹出活动菜单功能,如何实现消息拦截
- 找到的句柄怎么不对
- 小弟头都晕了,这个程序哪里错了!!
- 各位高手,有谁知道在Windows2000下如何进行端口操作!!!~~~欢迎探讨~~~
- 关于ISAPI的开发问题,如何将用户的表单数据存入数据库中?
- 一个关于查询的问题
- 麻烦大家帮我看看错在哪里了?
- 征求ado+access时的建议:关于增加、删除、修改等操作到底用什么方法比较好?update、insert into还是post、edit?
- TMainMenu有办法放到TCoolBar里面去么?非得用coolbar+toolbar+flatbutton去做可以dock的菜单么?
- Tlist如何判空?
- 怎么求得硬盘序列号?
用goolge搜一下,有很多的。