Methods ResourceLoadand GetResourceload the entire list of images from one specified image resource. The goal is for you to have one bitmap containing all the images intended to enter the list. The control then divides it into separate tiles based on the specified width and height of the list of images.
, . . . ( .) . ImageList_LoadImage .
, . , , . , LoadImage, . TIcon , , :
myicon := TIcon.Create;
try
myicon.LoadFromResourceName(HInstance, 'TEXT_BOLD');
FImageList.AddIcon(myicon);
finally
myicon.Free;
end;