Board index » delphi » Problems adding resources (icons) in Image list.
tgt...@chem.tue.nl (Martien Verbruggen)
Delphi Developer |
Sun, 24 Jan 1999 03:00:00 GMT
Problems adding resources (icons) in Image list.Hello, I've been trying to create an image list of a bunch of icons. I am having This works: Icon := TIcon.Create; These both don't: ImageList.ResourceLoad(rtIcon, 'I2COMP', clBlack); result of these is false, imagelist is not updated, GetLastError returns 87, { The parameter is incorrect. } Since I don't know which API call exactly generates this error, I am not However, if I convert the 32x32 icon to a bitmap, and do: ImageList.ResourceLoad(rtBitmap, '2COMP', clBlack) then it works. Can anyone explain to me what is going wrong? Thanks, Chemical engineering | Yesterday upon the stair, |