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 

Custom TDataModule

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Adam Flis
Guest





PostPosted: Fri Aug 15, 2003 12:28 pm    Post subject: Custom TDataModule Reply with quote



Hi.

I wont to write some custom TDataModule.

type TMyDataModule = class(TDataModule)...

When I change TDataModule of some unit that was created form File / New menu
in delphi to TMyDataModule the straneg behaviour starts. The background
color is gray and it apears as TForm.
When I create this module in runtime the error "Propery color does not
exists" occures.

What shoul I do to make this work?


Back to top
Ignacio Vazquez
Guest





PostPosted: Fri Aug 15, 2003 2:16 pm    Post subject: Re: Custom TDataModule Reply with quote



"Adam Flis" <adam (AT) adamsoft (DOT) si> wrote in message
[email]3f3cd243 (AT) newsgroups (DOT) borland.com[/email]...
Quote:
What shoul I do to make this work?

You need to use RegisterCustomModule in order to register TMyDataModule as a
datamodule with the IDE.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



Back to top
Adam Flis
Guest





PostPosted: Fri Aug 15, 2003 2:50 pm    Post subject: Re: Custom TDataModule Reply with quote



Thanks for answer!

But can you give more specific help with some example please!
I can not find any help in delphi help regarding this function.

Thanks in advance


"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote

Quote:
"Adam Flis" <adam (AT) adamsoft (DOT) si> wrote in message
[email]3f3cd243 (AT) newsgroups (DOT) borland.com[/email]...
What shoul I do to make this work?

You need to use RegisterCustomModule in order to register TMyDataModule as
a
datamodule with the IDE.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.





Back to top
Ignacio Vazquez
Guest





PostPosted: Fri Aug 15, 2003 2:56 pm    Post subject: Re: Custom TDataModule Reply with quote

"Adam Flis" <adam (AT) adamsoft (DOT) si> wrote in message
[email]3f3cf38f (AT) newsgroups (DOT) borland.com[/email]...
Quote:
I can not find any help in delphi help regarding this function.

Search the archives at http://www.tamaracka.com/.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.