size : 264
uploaded_on : Tue Oct 6 00:00:00 1998
modified_on : Wed Dec 8 14:03:13 1999
title : Icon in image list
org_filename : IconImageList.txt
author : Mike Brandt
authoremail : Software-Shop@t-online.de
description : How to add an icon to an image list
keywords :
tested : not tested yet
submitted_by : The CKB Crew
submitted_by_email : ckb@netalive.org
uploaded_by : nobody
modified_by : nobody
owner : nobody
lang : plain
file-type : text/plain
category : delphi-graphics
__END_OF_HEADER__
> I have a handle (returned by ExtractAssociatedIcon) of an icon and want to add the
> icon to an image list. But the image lists method AddIcon requires TIcon.
Do it this way:
Icon1 := TIcon.Create....
Icon1.Handle := MyIconHandle;
ImageList1.Addicon(Icon1);