Bonjour,
Est-il possible d'associer un icône d'un TImageList à un glyph d'un TBitButton?
Merci d'avance!
Bonjour,
Est-il possible d'associer un icône d'un TImageList à un glyph d'un TBitButton?
Merci d'avance!
Oui. Mais pas directement. Avec un procedure comme :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 var Bmp : TBitmap; begin Bmp:=TBitmap.Create; //Bmp.TransparentMode:=tmFixed; //Bmp.TransparentColor:=clFuchsia; ImageList1.GetBitmap(0,Bmp); BitButton1.Glyph:=Bmp; Bmp.Free; end;
Partager