Re: [UOPL-Architect] how design uopl gui applications
Status: Planning
Brought to you by:
bsstmiller
|
From: Richard B W. <rb...@us...> - 2004-12-03 19:11:57
|
That would be an interesting experiment. TInterfacedPersistent has a private field FOwnerInterface: IInterface; Its possible that the private field will mess up the typecasting mechanism. When you typecast, the compiler may expect FOwner, the first private field in TComponent to be in the position that is really occupied by FOwnerInterface. Richard B. Winston rb...@us... http://water.usgs.gov/nrp/gwsoftware/ 703-648-5988 on Fridays: 301 474-2762 |---------+------------------------------------------> | | "Dennis Landi" | | | <de...@de...> | | | Sent by: | | | uop...@li...| | | ceforge.net | | | | | | | | | 12/03/2004 01:48 PM | | | Please respond to | | | uopl-architect | | | | |---------+------------------------------------------> >--------------------------------------------------------------------------------------------------------| | | | To: <uop...@li...> | | cc: | | Subject: Re: [UOPL-Architect] how design uopl gui applications | >--------------------------------------------------------------------------------------------------------| Re: the tInterfacedPersistent -->> tInterfacedComponent descendants being registerable. It will be interesting to see if a tInterfacedComponent replica of the TComponent interface is registerable. I don't see why it wouldn't be... It will be an easy enough experiment to run. You would simply have to typecast it in the Registration proc. The registration syntax would be: RegisterComponents('MyComponentPage',[tComponentClass(TMyComponent)]); The interfaces of both artifacts would have to match; and if so, the IDE registration mechanism probably won't notice. This means that would have to hack the original source of tComponent; and clone a tInterfaceComponent version; which we would probably have to only be able to distribute as a DCU... But, I don't see that as a show-stopper. If the technique works, then we can actually introduce it to the delphi community, as it will allow them to unify artificacts at the component level, which will come in really handy for things like plug-ins. Dennis Landi Allied Data, Inc. 800 204 2722 http://www.dennislandi.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ UOPL-architect mailing list UOP...@li... https://lists.sourceforge.net/lists/listinfo/uopl-architect |