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 

How to register a TForm descendant into the Object Repositor

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





PostPosted: Sat Nov 29, 2003 2:23 am    Post subject: How to register a TForm descendant into the Object Repositor Reply with quote



Dear all,

I wrote a form which inherited from TForm. I want to register it into the
Object Repository, how to do that? Thanks for any clues.

Regards,
George
Back to top
Peter Below (TeamB)
Guest





PostPosted: Sat Nov 29, 2003 10:26 am    Post subject: Re: How to register a TForm descendant into the Object Repos Reply with quote



In article <Xns944273D2F729Fnobodyyahoocom (AT) 207 (DOT) 105.83.66>, George Wei wrote:
Quote:
I wrote a form which inherited from TForm. I want to register it into the
Object Repository, how to do that? Thanks for any clues.

Open the form, right-click on it and select "Add to repository" from the
menu.

Search the newsgroup archives for "RegisterCustomModule" to find some
related threads detailing a somewhat more involved procedure that is
required if your form class contains new published properties you want to
have available in design-mode.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Sebastian Quiles
Guest





PostPosted: Thu Dec 11, 2003 9:24 pm    Post subject: Re: How to register a TForm descendant into the Object Repos Reply with quote



anyone knows how to register the form in the repository by code (in a
package) and not by right clicking?

thanks

--
Sebastian Quiles
Argentina

Peter Below (TeamB) wrote:

Quote:
In article <Xns944273D2F729Fnobodyyahoocom (AT) 207 (DOT) 105.83.66>, George Wei wrote:

I wrote a form which inherited from TForm. I want to register it into the
Object Repository, how to do that? Thanks for any clues.


Open the form, right-click on it and select "Add to repository" from the
menu.

Search the newsgroup archives for "RegisterCustomModule" to find some
related threads detailing a somewhat more involved procedure that is
required if your form class contains new published properties you want to
have available in design-mode.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be




Back to top
Peter Below (TeamB)
Guest





PostPosted: Fri Dec 12, 2003 11:19 am    Post subject: Re: How to register a TForm descendant into the Object Repos Reply with quote

In article <3fd8df2e (AT) newsgroups (DOT) borland.com>, Sebastian Quiles wrote:
Quote:
anyone knows how to register the form in the repository by code (in a
package) and not by right clicking?

Well, the repository data is stored in the file delphi32.dro in your Delphi BIN
directory. This is an INI-style text file. Just take a look at it to figure out
how the entries are stored.

If you want to register a design-time package with the IDE you have to add the
package to a registry key, i think

HKEY_CURRENT_USERSoftwareBorlandDelphi7.0Known Packages


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



Back to top
Sebastian Quiles
Guest





PostPosted: Fri Dec 12, 2003 6:36 pm    Post subject: Re: How to register a TForm descendant into the Object Repos Reply with quote

Ok... it works, now I have 3 forms in a hierarchy in the repository...
but now I've somes problems:

x) How can I enable the option "inherits" in the groupbox and disable
"copy" and "use"?

x) Suppose that I have a frame in that form, I get an error message
telling me that the class tMyFrame is not found (just as when a
component is not installed) and after that I get my form without the
frame... How can I register my frame in delphi (by code) and how can I
put the frame in the component pallete (just as the rightclick option)
but doing it by code...

Peter Below (TeamB) wrote:
Quote:
In article <3fd8df2e (AT) newsgroups (DOT) borland.com>, Sebastian Quiles wrote:

anyone knows how to register the form in the repository by code (in a
package) and not by right clicking?


Well, the repository data is stored in the file delphi32.dro in your Delphi BIN
directory. This is an INI-style text file. Just take a look at it to figure out
how the entries are stored.

If you want to register a design-time package with the IDE you have to add the
package to a registry key, i think

HKEY_CURRENT_USERSoftwareBorlandDelphi7.0Known Packages


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be




Back to top
Peter Below (TeamB)
Guest





PostPosted: Fri Dec 12, 2003 7:50 pm    Post subject: Re: How to register a TForm descendant into the Object Repos Reply with quote

In article <3fda0921$1 (AT) newsgroups (DOT) borland.com>, Sebastian Quiles wrote:
Quote:
Ok... it works, now I have 3 forms in a hierarchy in the repository...
but now I've somes problems:

x) How can I enable the option "inherits" in the groupbox and disable
"copy" and "use"?

x) Suppose that I have a frame in that form, I get an error message
telling me that the class tMyFrame is not found (just as when a
component is not installed) and after that I get my form without the
frame... How can I register my frame in delphi (by code) and how can I
put the frame in the component pallete (just as the rightclick option)
but doing it by code...

Registering a frame should go the same as a form, but i'm a bit out of my area of
expertise here. Have to punt, sorry.


--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be



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.