Because TsAlphaImageList stores the filename as a sort of symbolic ID, how nice would it be to have the following property:
Code:
TsAlphaImageList
private
function GetItem(SymbolicLabel: String): TsImgListItem;
.
.
published
property ItemByName[SymbolicLabel: String]: TsImgListItem read GetItem;
.
.
end;
Then, in all controls of AlphaControls, when there is an ImageList as a property, the image could also be retrieved with a new property: ItemName (like ItemIndex, but now symbolic).
Gone are the ugly ItemIndex references, that only work if you never alter the images sequence in the image list. At the same time it would nicely document what the image selected from the image list is used for.