Board index » cppbuilder » Writing a component that includes 2 VCl Co

Writing a component that includes 2 VCl Co

Hi,
I want to make a component that includes a combobox and a listbox.
First of all is it possible (2 VCL components at the same time)? i know
that a component can have only one ancestor class (in this case
TComboBox). that's why i declared a member variable of typ TListBox and
tried to display it (after allocating memory with new for it and setting
the right Properties). I installed the component but when i tried to
used it in a  Form of a standard application i get a run time error:
"  Project ... raised exception class EResNotFound with message
'Ressource "newComponent" not found....  "

need help! thanks

--

Sigrid Hardt
Dipl.-Math.oec.
Datenbank-Entwicklung

==============================================================
Synotec GmbH                Tel       +49 (0) 9131 / 6177 - 27
In der Zeil 39              Fax       +49 (0) 9131 / 6177 - 61
D-91058 Erlangen            Homepage    http://www.synotec.com
==============================================================

 

Re:Writing a component that includes 2 VCl Co


Hi, Sigrid!

The folks in borland.public.cppbuilder.vcl.components.writing are
probably the best to ask your VCL question.

The short answer is that you need to combine the components of interest
into an aggregate component, as described in

http://www.temporaldoorway.com/programming/cbuilder/advancedissue/agg...

You can also use a Frame in many cases where you would otherwise create
an aggregate component as described in the article, if you have BCB5.

------
Mark Cashman, TeamB C++ Builder
http://www.temporaldoorway.com/programming/index.htm
C++ Builder, JBuilder programming information
Home of The C++ Builder Programmer's Webring - Join us!
------

Other Threads