Re: Working with TImageList



JamesR wrote:
How do you work with differen't size images with a TImageList.

You don't.

You have
to set the Width and Height, so does this mean each file needs to be
stretched or cropped to fit?

TImageList doesn't work with files. It works with bitmaps. In fact, internally, it only works with one, and then it divides it up into separate images when you tell it to draw something somewhere. TImageList is how the OS deals with images for toolbars, list views, and tree views. It's meant for small images -- icons.

If you want a generic list of images, then use something more like TList.

And "different" is not a contraction. It's all one word, no apostrophe. Just like "went," "spent," and "complement."

--
Rob
.



Relevant Pages

  • Working with TImageList
    ... How do you work with differen't size images with a TImageList. ... to set the Width and Height, so does this mean each file needs to be ... (I tried this and found an apparent Delphi ... bug which I've posted). ...
    (comp.lang.pascal.delphi.misc)
  • Re: Common Myths for the Macintosh
    ... does rewrap around images in real time, but I suppose how 'real' depends on your computer's performance. ... of the many features suddenly got all that experienced flushed right down ... I suppose it might affect users who had more custom toolbars than you can fit into Office 2007. ... You won't admit anything is a competitor to iWeb unless it is *inferior* to iWeb ...
    (comp.sys.mac.advocacy)
  • Re: Its Time For a Website Upgrade
    ... so they'll completely fit on a reasonable sized screen. ... Nice images; some of them look like they could use a bit of sharpening. ... Heh, heh. ... women always look their very best when they smile (especially as ...
    (rec.motorcycles)
  • Re: CP/M bootable CD?
    ... Actualy the whole mess fit on a 3.5" floppy with several floppy ... NS* floppy images for DD are at most 360k. ... or two of DOS overhead). ...
    (comp.os.cpm)
  • Re: Preview scale to fit pref
    ... "zoom to fit" on the window top. ... makes smaller images larger to fill the window. ...
    (comp.sys.mac.apps)