Once again, many thanks, Mike, you're right again ;) You solved me a problem that had been bothering me for some time now.
Glad this forums help so much. --- In [email protected], Mike Shkolnik <[EMAIL PROTECTED]> wrote: > Hi, > > try the next: > yourTImage.Picture.Bitmap := nil; > yourTImageList.GetBitmap(3, yourTImage.Picture.Bitmap) > > With best regards, Mike Shkolnik > E-mail: [EMAIL PROTECTED] > WEB: http://www.scalabium.com > > --- sh1wide <[EMAIL PROTECTED]> wrote: > > > Thanks so much for the fast, accurate and correct > > answer, Mike! Great! > > > > Just another question, while we're at it. > > > > Obviously I tried your example and it works, but > > there's something > > else I'd appreciate help with... > > > > Since the pictures in the TImageList I had use > > transparency, whenever > > I change the picture in the TImage with your > > example, it superimposes > > the new picture on top of the old one, there's rests > > of the old > > picture in the back. I use the Invalidate method to > > refresh the new > > picture in every change, obviously, but it still > > lefts these trash in > > the back. > > > > Is there any way to completely clear the Timage > > before applying the > > new image from TImageList? > > > > Thanks > > > > > > --- In [email protected], Mike Shkolnik > > <[EMAIL PROTECTED]> wrote: > > > yourTImageList.GetBitmap(3, > > yourTImage.Picture.Bitmap) > > > > > > With best regards, Mike Shkolnik > > > E-mail: [EMAIL PROTECTED] > > > WEB: http://www.scalabium.com > > > > > > --- sh1wide <[EMAIL PROTECTED]> wrote: > > > > > > > I've tried so many ways, but I can't seem to do > > > > it... it's getting > > > > frustrating. > > > > > > > > What I want to do is to have a TImageList > > component > > > > with let's say 3 > > > > ou 4 pictures loaded at design time, and then > > assign > > > > any of them at > > > > run-time into a TImage component. > > > > > > > > I've tried the Assign, Picture and Bitmap > > methods of > > > > TImage to get > > > > pictures from TImageList, but I only got nothing > > or > > > > access violations... > > > > > > > > Any help is appreciatted. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

