可以
listbox1.style:=lbownerDrawVariable;
然后自己来添加图形
TForm1.ListBox1DrawItem();
var
bmp:tbitmap;
offset:integer;
begin
offset:=0;
with listbox1.canvas do
begin
fillrect(rect);
bmp:=TBitmap(listbox1.items.objects[index]);
if bmp<>nil then
begin
brushcopy(bounds(rect.left+2,rect.top+2,bmp.width,bmt.height),bmp,bounds(0,0,bmp.width,bmp.height),clred);
offset:=bmp.width+8;
end;
end;
end;
listbox1.style:=lbownerDrawVariable;
然后自己来添加图形
TForm1.ListBox1DrawItem();
var
bmp:tbitmap;
offset:integer;
begin
offset:=0;
with listbox1.canvas do
begin
fillrect(rect);
bmp:=TBitmap(listbox1.items.objects[index]);
if bmp<>nil then
begin
brushcopy(bounds(rect.left+2,rect.top+2,bmp.width,bmt.height),bmp,bounds(0,0,bmp.width,bmp.height),clred);
offset:=bmp.width+8;
end;
end;
end;
解决方案 »
- 一个sql server 触发事件的问题!!!
- 如何调用网上的 ACCESS 数据库?
- Delphi6中,dbgrid中有数据,滚动表格,adoquery的eof和bof同时为真
- 璇锋暀鍚勪綅楂樻墜: 浣跨敤mysql5.0 鏁版嵁搴撴煡璇㈢殑鍙戠幇鏁版嵁绫诲瀷鍑洪敊?
- 在delphi中如何获取所有已运行程序的名称和该程序的窗口标题
- 程序中如何取得fr报表自定义的纸张大小?
- 用Delphi如何设置Excel某一个单元格的格式??
- 帮我解决一个问题好吗?
- 不安装oracle客户端,delphi7生成的DLL能连接上数据库吗?
- 一个简单问题,大虾请帮帮。
- 有没有谁做过试卷生成系统,给点意见!
- 簡單的socket問題
然后自己画图并输出文字。