BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating a TFrame descendant component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Darío Alejandro Guzik
Guest





PostPosted: Tue Jan 16, 2007 10:48 pm    Post subject: Creating a TFrame descendant component Reply with quote



Hi!

We have been working with some TFrames descendant created by ourselves
but We are having some problems since they have to be updated for some
projects but We want to keep older versions for another projects until
We have time to test if the updates on the frames work well with that
project. Up to know We are including all source files in every project
and We decided that they should be in a library or package so We can
choose when to update files.

I don't know if creating a package is the best choice so if you have a
better idea please tell me, but anyways I've been trying to make the
package with no luck at all.
I took the source files, added the PACKAGE macro, and created de
ValidCtrCheck and Register methods, but I'm having two problems:
1- The IDE modifies the DFM as if it was a TForm
2- No component is added at all after compile+install.

I read about the problem (1) in some website and I'm compiling from
command line to avoid the IDE modification, but no luck with (2).

I also tried a silly example with no luck either: created a TFrame with
a CheckBox, created package, installed succesfully, but when I used it
on an application to test it I got an "class TCehckBox not found" error.

Please, any ideas/tutorials?

BTW: I'm using BCB5
Back to top
Darío Alejandro Guzik
Guest





PostPosted: Tue Jan 16, 2007 11:21 pm    Post subject: Re: Creating a TFrame descendant component Reply with quote



Ok, I'll change the questin since I managed to solve the previous problems.

My TFrame is a kind of excel's pivot tables, and among other things it
generates reports through QuickReports. Now I managed to build the
package but I cannot install it because of this error

---------------------------
C++Builder 5
---------------------------
Cannot load package 'TablasPackage.' It contains unit 'Qrprnsu,';which
is also contained in package 'Qrpt50'
---------------------------
OK
---------------------------

I didn't add that unit by hand, nor is in the bpk or cpp source. I guess
it hast to do with QRPT50 lib I use from the frame... Is there any way
to solve this?
Back to top
Darío Alejandro Guzik
Guest





PostPosted: Wed Jan 17, 2007 2:05 am    Post subject: Re: Creating a TFrame descendant component Reply with quote



Ok, I know... I should try harder before asking... One step ahead! I
solved the previous error by including the required bpis on the required
section.

Now I have another problem but I guess this time is related to my source
code, but I don't know how to solve it.

I have a TFrame descendant. Let's call it TFrameDesc1. It's an abstract
class son I cannot generate a component from it, but I do have two
different descendants from that class that are not virtual, let's call
them TMyFrame1 and TMyFrame2.

These two frames are the ones I want to be generated as components in a
package.

I created the package, included required bpis and all the required cpp
files auxiliary to TFrameDesc1 and the two descendants, but when I add
the TMyFrame1 unit I get an "Ancestor Component not found" for a
component that was defined in TFrameDesc1 and inherited in TMyFrame1.

After several tests I managed to create the componente by generating a
makefile, copying the dfms from the originals, making and installing. It
works fine while I don't enter on the cpp files while debugging. (again
the inherited problems).

Am I doing something wrong? What am I missing?
Back to top
Clayton Arends
Guest





PostPosted: Thu Jan 18, 2007 9:11 am    Post subject: Re: Creating a TFrame descendant component Reply with quote

If I understand what you are describing it looks like you need to have the
ancestor frame's unit open in the IDE before you attempt to open the
descendant frames' unit or any form in which you've dropped one of the
descendant frames. I deal with this all the time when I have datamodules
and frames in packages.

- Clayton
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.