我找到了,可那个窗体是clx格式的,我不会用! procedure TfrmConfig.ToolButton6Click(Sender: TObject); var clxImgDlg: TClxImageListEditor; begin clxImgDlg:=TClxImageListEditor.CreateImgListEditor(Self,ImageList1);// 这里编译出错,说:Incompatible types:'QImgList.TImageList' and 'Controls.TImageList' clxImgDlg.ImageList.Assign(ImageList1); if clxImgDlg.ShowModal=mrOk then ImageList1.Assign(clxImgDlg.ImageList); clxImgDlg.Free; end; 谁帮我改改呀!
$Delphi\Source\Property Editors中定义的东西直接拿来使用、具体如下:
打开菜单栏Component->Install packages,在Runtime packages一栏中选上‘Build with runtime packages’复选框、清空后再加入DesignIDE
uses PicEdit;var
APictureEditor: TPictureEditor;
begin
APictureEditor := TPictureEditor.Create(nil);
try
APictureEditor.Picture.Assign(Image1.Picture);
if APictureEditor.Execute then Image1.Picture.Assign(APictureEditor.Picture);
finally
APictureEditor.Free;
end;
end;
procedure TfrmConfig.ToolButton6Click(Sender: TObject);
var
clxImgDlg: TClxImageListEditor;
begin
clxImgDlg:=TClxImageListEditor.CreateImgListEditor(Self,ImageList1);// 这里编译出错,说:Incompatible types:'QImgList.TImageList' and 'Controls.TImageList'
clxImgDlg.ImageList.Assign(ImageList1);
if clxImgDlg.ShowModal=mrOk then
ImageList1.Assign(clxImgDlg.ImageList);
clxImgDlg.Free;
end;
谁帮我改改呀!