如果将一个IMAGELIST中的多个图片在不同情况下分配给一个SPEEDBUTTON的GLYPH属性?

解决方案 »

  1.   

    调用这个过程:
    ImageList1.GetBitmap(1,SpeedButton1.Glyph);
      

  2.   

    tongyi ImageList1.GetBitmap(1,SpeedButton1.Glyph);
      

  3.   

    Retrieves a specified image as a bitmap.Delphi syntax:procedure GetBitmap(Index: Integer; Image: TBitmap);C++ syntax:void __fastcall GetBitmap(int Index, Graphics::TBitmap* Image);DescriptionUse the GetBitmap method to obtain a particular image in the image list as a bitmap object. Index denotes the index of the image. GetBitmap assigns the image to the TBitmap object passed in as the Image parameter.GetBitmap通过Image参数将图片分配给相应的对象!