留
留香客
Unregistered / Unconfirmed
GUEST, unregistred user!
我想给自己的控件加一个ImageList和ImageIndex属性,选中ImageList后,在属性ImageIndex中显示图片,就像Toobar之类的那样 ( 积分: 100 )<br />我想给自己的控件加一个ImageList和ImageIndex属性,选中ImageList后,在属性ImageIndex中显示图片,就像Toobar之类的那样
ImageIndex是一个TImageIndex,而TImageIndex是一个integer.我的published是这样声明的:
private
FImageList:TCustomImageList;
FHotImage:TImageIndex;
published
property ImageList:TCustomImageList read FImageList write SetImageList;
property HotImage:TImageIndex read FHotImage write SetImage;
ImageIndex是一个TImageIndex,而TImageIndex是一个integer.我的published是这样声明的:
private
FImageList:TCustomImageList;
FHotImage:TImageIndex;
published
property ImageList:TCustomImageList read FImageList write SetImageList;
property HotImage:TImageIndex read FHotImage write SetImage;