Board index » delphi » Converting Non-Visual VCL Component to ActiveX
newsgroups.borland.com
![]() Delphi Developer |
newsgroups.borland.com
![]() Delphi Developer |
Converting Non-Visual VCL Component to ActiveX2003-09-17 09:12:21 PM delphi121 Hi, I need to convert my non-visual VCL Component (inherited from TComponent) to an ActiveX Component. How can this be done? I tried creating through the New-Create-ActiveX Control procedure...But that requires that the Control be derived from TWinControl. What are the ways by which I can do this conversion? Thanks, |
Eugene Mayevski
![]() Delphi Developer |
2003-09-19 06:17:20 AM
Re:Converting Non-Visual VCL Component to ActiveX
newsgroups.borland.com writes:
QuoteI tried creating through the New-Create-ActiveX Control procedure...But that descendant,register it in palette and then use the above procedure 2) (hard way) implement all necessary interfaces by hand. The problem with the easy way is size. VCL adds ~300-350Kb to your ActiveX so the smallest size you get would be ~400Kb. -- Eugene Mayevski EldoS Corp., CTO Networking and security solutions, custom development services www.eldos.com |
newsgroups.borland.com
![]() Delphi Developer |
2003-09-19 09:17:53 PM
Re:Converting Non-Visual VCL Component to ActiveX
Hi,
Thanks for the info. Quote1) (the easy way) conditionally descend the component as TWinControl's be getting something that is visible at runtime also when placed on the form! My component should look like any other non-visual component with an icon. How can I achieve this if I derive from TWinControl? Quote2) (hard way) implement all necessary interfaces by hand. Thanks, "Eugene Mayevski" <XXXX@XXXXX.COM>writes Quotenewsgroups.borland.com writes: |