I'm using Delphi 7 prof. and have some images in an imagelist which
already "feeds" my toolbar. But now I have also some TImages in one form
which should display some of the images from the imagelist.
How is this done? Is this possible, or MUST these pictures come from
files rather than an image list (which would seem unlogically to me)?
Greetings
Markus
This example assigns a bitmap contained in an ImageList to an Image
component's Picture's Bitmap property and displays the bitmap.
procedure Form1.Button1Click(Sender: TObject);
begin
ImageList1.GetBitmap(0,Image1.Picture.Bitmap);
end;
I'll try it. Thanks!
Markus
my image list formerly contained little pictures for the buttons
(Borland Standard). All have the same size, but my new ones are bigger.
When I import them to the image list, I only have the posibility to cut,
stretch or center them, but I can't keep the original size. They get
either cut at one place or get shrinked. How to avoid this?
Greetings
Markus
You have to use another ImageList for yours big pictures, becouse all
pictures within it has same Height and Width.
See TImageList.Height and TImageList.Width descriptions in Delphi Help
Oh. Okay, nothing easier than that...
Greetings
Markus