Link to home
Start Free TrialLog in
Avatar of Hamlet081299
Hamlet081299

asked on

Creating OCX for use in Excel etc.

Does anyone have any good references on writing OCX's in Delphi?

I am trying to write an OCX control that I can then use in Excel.  I thought it'd be easy.  I follow the basic process of ...
1. Create VCL control
2. Wrap as an ActiveX control
3. Register it
... but the control does not appear in the list when I do an "Insert | Object" in Excel.

Any ideas?

(p.s. Using D6)
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Hi Hamlet,

reading from what you did it should work like that

maybe you've to choose insert object and then do a search for the component

why it doesn't appear in the list i don't know, but i use a control in an excel application that was registered on the PC and was not visible in the list of objects. i looked on disk and added it that way and it worked just fine

HTH:O)Bruintje
listening
Avatar of Hamlet081299
Hamlet081299

ASKER

Okay ... I've figured out where I'm going wrong.

It's the way I was trying to insert the object.

Using the menu "Insert | Object" does not work, but instead do this...

1. View | Toolbars | Control Toolbox

2. Click on the "More Controls" button.

3. Select the control.

I'll leave this question here for others who are struggling with this one.
ASKER CERTIFIED SOLUTION
Avatar of Moondancer
Moondancer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial