Solved

OCX and TImage

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

785 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