I am making a custom component for a project, which includes a TIEBitmap as one of its properties (actually, a TCollection of classes which include a TIEBitmap). I would like to be able to add my class to the collection (this part seems to work), and then - in the standard collection editor - be able to browse to a picture file to put into the TIEBitmap.
But, when I add my class
TPictureItem = CLASS(TCollectionItem)
BitMap : TIEBitMap;
PRIVATE
FUNCTION GetWidth : Cardinal;
FUNCTION GetHeight : Cardinal;
FUNCTION GetBitMap : TIEBitMap;
PUBLISHED
PROPERTY Picture : TIEBitMap Read GetBitMap;
PROPERTY Width : Cardinal Read GetWidth;
PROPERTY Height : Cardinal Read GetHeight;
END;
to the collection, it correctly displays my Picture item:

but doesn't allow me to either Expand the Picture or (preferably) simply allow me to select an image to load into it. Preferably, I would like the Object Inspector to simply have a button to browse for at picture file (using ImageEn's OpenImageEnDialog), secondary option is to allow expansion of the Picture element and then allow me to load the picture file from there.
How do I accomplish this?