Hi folks,
I have an IMAGELIST1 component which i added 3 images ('1.bmp', '2.bmp' and '3.bmp').
I also have an IMAGE1 component which loads an image from IMAGELIST1 in this way:
=======================================================
image1.Picture.Bitmap.Assign(nil); //clear content first
imagelist1.GetBitmap(0,image1.Picture.Bitmap); //show bitmap from imagelist - where 0 is the 1st image, 1 would be th 2nd and 2 the 3rd.
=======================================================
So, basically, i assigned and image in my IMAGE1 component by selecting an IMAGELIST1 image. Ok.
In some point in my application i need to know what is the image loaded in the IMAGE1 component ('1.bmp', '2.bmp' or '3.bmp'). If is not possible to recognize the filename, at least what is the image order number corresponding in the IMAGELIST1 (for example, if i could detect that the image order number was 1, i know that it corresponds to the '2.bmp' image).
How could i implement this?
Any idea or suggestion will be appreciated.
JOEL RODRIGUES