 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Miroo_news Guest
|
Posted: Tue Dec 23, 2003 8:39 am Post subject: Refreshing in TLE doesn't work |
|
|
Hi,
When I add new interface using "Add/ActiveX/Automation Object"
then after adding methods or properties and refreshing i can see
them in code in my T* class.
But when I add them using button "New interface", metods
does not appear in my class declaration (class declaration
doesn't appear itself too).
Why?
It is a bit uncomfortable to add all things in TLE and later
again in class code...
Regards and best Christmas and New Year wishes,
Miroo
|
|
| Back to top |
|
 |
Miroo_news Guest
|
Posted: Tue Dec 23, 2003 8:54 am Post subject: Re: Refreshing in TLE doesn't work |
|
|
Użytkownik "Miroo_news" <miroo (AT) USUNTO (DOT) poczta.fm> napisał w wiadomości
news:bs8v7n$gfb$1 (AT) nemesis (DOT) news.tpi.pl...
| Quote: | When I add new interface using "Add/ActiveX/Automation Object"
then after adding methods or properties and refreshing i can see
them in code in my T* class.
But when I add them using button "New interface", metods
does not appear in my class declaration (class declaration
doesn't appear itself too).
Why?
|
I'm sorry, I forgot to write I'm using Delphi 7 Pro.
Regard
Miroo
|
|
| Back to top |
|
 |
John Carlyle-Clarke Guest
|
Posted: Mon Jan 05, 2004 9:31 am Post subject: Re: Refreshing in TLE doesn't work |
|
|
"Miroo_news" <miroo (AT) USUNTO (DOT) poczta.fm> wrote in news:bs8v7n$gfb$1
@nemesis.news.tpi.pl:
| Quote: | Hi,
When I add new interface using "Add/ActiveX/Automation Object"
then after adding methods or properties and refreshing i can see
them in code in my T* class.
But when I add them using button "New interface", metods
does not appear in my class declaration (class declaration
doesn't appear itself too).
Why?
It is a bit uncomfortable to add all things in TLE and later
again in class code...
|
I'm a bit confused as to exactly what your problem is.
If you create a new interface you must also create a new CoClass, or
add the interface to the implentation list of an exisiting CoClass.
Unless a class is implementing the interface, then Delphi will not
modify any code outside of the xxx_TLB.pas file.
Also, if you look in the source file for your project, you will see
that CoClasses are linked to Delphi classes by a special notation,
e.g.
MyRect in 'MyRect.pas' {MyRect: CoClass}
If the bit at the end is removed, Delphi will stop updating the class
definition automatically.
Finally, changes in the TLB won't be reflected in the code until you
either press the "Save All" button, or press the "Refresh
Implementation" button in the TLB Editor.
Hope I've hit your specific problem there somewhere.
|
|
| Back to top |
|
 |
|
|
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
|
|