ActiveX Component Expert

Posted on 1998-05-05
Medium Priority
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?
Question by:arnoldu
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Expert Comment

ID: 1341377
What does your component inherit from?


Author Comment

ID: 1341378
The component is inherited from TComponent - is there a problem with invisible components?

Accepted Solution

JimBob091197 earned 600 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.


Expert Comment

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."


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

719 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