在TImageList中,主要是想将图片加到TImageList中!
解决方案 »
- 程序界面操作太卡???
- 什么时候用 packed record??
- 在delphi2007上装 EhLib 时出错:E2202 Required package 'rtl' not found,如何解决???
- 请问主键重复问题如何处理,在线等,TKS!
- 如何访问加了密码的access数据库
- 如何动态创建对象!急急
- idhttp哪个属性是返回下载进度?
- 查询某个时间段内记录的问题,急啊,有劳各位了!
- 改进TEDIT组件,有没好办法
- 如何在delphi中实现oracle中dev用户下面所有表的纪录清空?? 怎么不能用spool语句?
- Delphi的Bug太多,我还是用回我的VB
- *******请问各位高手:如何实现菜单的淡出效果?******************
var
str : string ;
f1 : Textfile ;
dirname : string ; // directory name;
s : string ;
bmp1 : Tbitmap ;
bitmap : Tbitmap ;
begin
Bitmap := TBitmap.Create ;
bmp1 := TBitmap.Create ;
// read ini file ;
getdir (0,dirname);
str := dirname + '\Picture\' ;
AssignFile(f1 ,str+'bitmap.ini') ;
reset (f1);
while not eof(f1) do
begin
readln(f1, s ) ;
bitmap.LoadFromFile(str+s) ;
ImageList1.Add(bitmap) ;
end ;
closefile(f1);
end;
这是我的程序,在Add中出错!
我运行的时候出错!
好象是少了一个参数Mask!这个问题一直头痛!
Use the Add method to add images with their masks to an image list. It returns the index of the added image, or -1 if it fails. When the Masked property of the image list is False, the second bitmap is ignored; it can be set to nil.