The particular situation you mention is another case for subclassing
your own versions of any components before you use them. If you are
changing _all_ components of a particular type, you might consider
changing the VCL source code to set their properties instead of setting
them on every form. Just thought I'd throw that in...
By the way, when modifying forms you want to use ObjectTextToResource
and ObjectResourceToText, and not ObjectTextToBinary and
ObjectBinaryToText as stated in some replies.
Cheers,
Carl Reynolds Ph: +64-9-4154790
CJN Technologies Ltd. Fax: +64-9-4154791
[EMAIL PROTECTED] DDI: +64-9-4154795
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/
> -----Original Message-----
> From: Steven Wild [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 30, 1999 12:19 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: Reading dfm files
>
> I have a need to be able to read in a dfm, alter it, and write
> it back to the dfm file from within another Delphi app.
>
> Does anyone have some code that will read a dfm into ledgeable
> form... into a TstringList would be very helpful ... and then
> write the altered one back out to file.
>
> Why??? Well I want to be able to test and set a value on about 1000
> instances of a small group of components where they are used. Rather
> than open all forms in the project and manually look for each
> possible instance of the components, I want to just be able
> to automate the process. I just thought that automating processes is
> what we are all about so why not do it to dfms as well!
>
> Steven Wild
> Wild Software Ltd
> ----------------------------------------------------------------------
> -----
> New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
application/ms-tnef