Solved

ActiveX Component Expert

Posted on 1998-05-05
4
224 Views
Last Modified: 2010-04-06
When I try to convert my component to an ActiveX control using the ActiveX expert (New ... ActiveX ... ActiveXControl), my component is not visible in the dropdownlist of VCL components. It is correctly installed and working as normal VCL component though, any ideas?
0
Comment
Question by:arnoldu
  • 3
4 Comments
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1341377
What does your component inherit from?

0
 

Author Comment

by:arnoldu
ID: 1341378
The component is inherited from TComponent - is there a problem with invisible components?
0
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 200 total points
ID: 1341379
Yip.  You can't have anything inherited directly from TComponent.  It must be a control (inherited from TCustomControl, or maybe TControl).

You could try changing it from "TMyWhatsIt = class(TComponent)" to TMyWhatsIt = class(TCustomControl)" and then in the constructor setting the Width & Height to 24, and keeping the Visible property False.  A bit of a work-around, but it should work.

Cheers,
JB
0
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1341380
According to Delphi's help, a TActiveXControl must be derived from a TWinControl.

"TActiveXControl defines the core behavior and interfaces required of an ActiveX control and connects that behavior to any VCL control derived from TWinControl."

JB
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mobile Keyboard covers the display of the TMemo 3 96
Run video youtube webbrowse 10 65
Multiple image collision 13 80
CheckListBox usage 3 71
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question