Solved

OCX and TImage

Posted on 1998-11-17
2
202 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

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…
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…

821 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