开发者

Is it possible for the user to use an ActiveX control which is unknown for application?

开发者 https://www.devze.com 2023-02-15 14:48 出处:网络
I actually want to import an activeX control while it\'s not installed on Delphi and its class is not specific. I actually want to import and use ActiveX controls on runtime without im开发者_高级运维p

I actually want to import an activeX control while it's not installed on Delphi and its class is not specific. I actually want to import and use ActiveX controls on runtime without im开发者_高级运维porting them in delphi IDE. Is this possible?


I am not sure that I have understood your needs, but it might be really simple: Drop a TOLEContainer on your form, and make it Align := alClient. Then do

procedure TForm1.FormCreate(Sender: TObject);
begin
  OleContainer1.InsertObjectDialog;
end;

This will allow the user to insert any registered (on the user's machine) OLE control in the TOLEContainer.

0

精彩评论

暂无评论...
验证码 换一张
取 消