Solved

ActiveX Component Expert

Posted on 1998-05-05
4
225 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
[X]
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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 92
Microsoft Access 97 and Delphi XE2 9 74
Problem working with dynamic array - help 2 36
Firemonkey Queue list 1 32
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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