GetBitmap 的一个问题??? 用ImageList的GetBitmap函数,如果我把用这种形式ImageList1.GetBitmap(3, BitBtn1.Glyph);能够取到,但是如果是ImageList1.GetBitmap(3, bmp1); //bmp1: TBitmap; bmp1始终都是空的,这是什么原因呢??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.BitBtn1Click(Sender: TObject);var FBit: TBitmap;begin FBit := TBitmap.Create; try ImageList1.GetBitmap(0, FBit); // 你创建TBitmap了么? BitBtn1.Glyph.Assign(FBit); finally FBit.Free; end;end; bmp1 要初始化的!~ 即bmp1 := TBitmap.Create; Glyph 是 BitBtn1 的 成员 所以 BitBtn1 Create 的 时候 也Create 了 Glyph 而你 自己定义的 bmp1 没 就 要你自己 Create 咯 关于触发器的简单问题 已知公式,求解!涉及位运逄及逻辑运算。(即时结贴) 高分求助如何覆盖父类的属性? 有谁认为是delphi的高手,留个QQ交个朋友! 急用!!各位帮帮忙(paradox) 哪有D6下install shield 的中文版本? 讨论动态数组的问题以及Stream和OleVariant FlashGet的致命错误???? 为什么在用QuickReport中的TQRLabel的字体会颠倒? 给定一个目录,如何提取出它对应的图标? 在工程中引用 uCnFastStream 单元,指定是那个位置引用?? 按F10 程序就卡住了
var
FBit: TBitmap;
begin
FBit := TBitmap.Create;
try
ImageList1.GetBitmap(0, FBit); // 你创建TBitmap了么?
BitBtn1.Glyph.Assign(FBit);
finally
FBit.Free;
end;
end;
而你 自己定义的 bmp1 没 就 要你自己 Create 咯