Hi,
I'll try to straighten things up.
Cliff" wrotehmmm the dfm should be in xml format so that us or any other language wishing to use a lazarus dfm can do so without having to build a parser. Lazarus will interpret the xml file using a parser to generate the
necessary
Show quoted text 5 lines
Yes, I agree.
Show quoted text 13 lines
There is no pain in Delphi now, because from Delphi (2?) up you can stream out just any component. But way back in Delphi 1, this was a major drawback. </THEORY> I am talking about a persistent state of objects, which is a great thing to have - it means that the object has easy and STANDARD way to remeber its attributes before it is destroyed and is able to retrieve them back when it is created again. (See the awkward way how to accomplish this in COM, various discussions on Delphi forums, etc.}.
<THEORY/>
As I understood, the CreateDesignForm is created by IDE to be compiled into the project as a virtual procedure and later called from the constructor. While this is sufficient for basic IDE RAD, the TForm is still a SPECIAL case and a more generic approach (Delphi-wise) is what should be in here.
> 2} It is for design-time only. While this may be enough for RAD, This is all it is good for. That is all it is used for in Delphi.
Maybe you are right, I do not have the Delphi sources. How do you think they copy components via clipboard? Anyway, that is NOT all it is used for by Delphi programmers (me included), trust me. Consider how easily can be done a custom report design (for printing, by end-users) in Delphi applications ...
Show quoted text 11 lines
But the RAD in Delphi USES that mechanism. See component streaming support in TStream and its descendants, TFiler, TReader, TWriter objects. The .DFM file is just a component hierarchy having its persistent state written into a file. So the Delphi IDE makes heavy use of these features, in fact it is build upon it.
Show quoted text 8 lines
I think you can link that into the executable, which is a part done by linker, but I am not expert in this area, so you are probably right.
However, the streaming techniques on which is Linux build, simply fascinates me. Through streams in XML format, you could even stream TForm or TGroupBox or whatever out of Lazarus to a WWW server, creating a WWW page !!!
Show quoted text 5 lines
How would you represent a bitmap or a sound clip in text? BASE-64 or MIME-encoding? or these nice numbers Delphi shows when you open a .dfm? Could be fairly large, and I am not sure about compiling efficiency then.
Maybe we still don't understand each other, in which case I apologize and beg for further explanations.
Regards,
Mike
____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.
