当前位置:主页>delphi7/进销存和数据库> 文章内容

在grid中画图

发布时间:2010-02-04 | QQ免费站
1楼: 我想在strgrid上画图,想请教一下: 要求如下 procedure TForm1.Button1Click(Sender: TObject); begin if grid.rowcount>1 then//如果GRID的行大于1 grid[1,1]:=iamge//意思是在第一行第一列画图 end; //不能在grid的DrawCell中画 字串8

2楼: 能不实现呀
字串8

3楼: 试试在procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);中自己画。
字串1

4楼: to blyb: 我不想再drawcell中画,图片时时刷新,程序经常死机,这种方法我多试过了 字串2

5楼: http://www.delphibbs.com/keylife/iblog_show.asp?xid=12309 KeyLife富翁笔记 作者?: wrl_001 标题?: DBGrid单元格画圆圈 关键字: DBGrid,画圆圈

字串8

6楼: 不能在其他事件中实现, 只能在drawcell中自己画 字串2

7楼: 没有拌饭
字串4