Solved

OCX and TImage

Posted on 1998-11-17
2
199 Views
Last Modified: 2010-04-04
How can I create a ActiveX control that is not in the VCL Class Name of ActiveX Control Wizard ? Or how can I add class to it ?

Actually, I want to create a ActiveX control that is using TImage ! Anyway, solution ?

Andrew
0
Comment
Question by:andrewyu
2 Comments
 
LVL 2

Accepted Solution

by:
Thaddy earned 0 total points
ID: 1347106
The VCL components suitable for the wizard need to descend from Twincontrol, but you can encapsulate a Timage in it:

TOcxImage=class(Twincontrol)
  Fimage:Timage;
 public
   constructor create(Aowner:Tcomponent);override;
   destructor destroy;override;
 published
   image:Timage read Fimage write Fimage;
 end;


0
 

Author Comment

by:andrewyu
ID: 1347107
Thank you very much !

Andrew
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now