Solved

loading DFM forms into an app at run-time

Posted on 1997-08-12
2
614 Views
Last Modified: 2010-04-03
I have a problem that I was hoping you would be able to offer me some advice with. I am writing an application that allows the user to tailor forms at run-time by moving controls and adding fields. The only difficulty that I am having is with saving and reloading the forms. I have read some material on how to do this but it is incomplete. I would like my application to create a file for each form that is similar to a delphi DFM file. I have used the readcomponent & writecomponent methods in the TFilestream object but I can only save the components on the form not the form itself. Can you give me any pointers on how to
save a form and all of its components to a file similar to a Delphi DFM file. Any help would be appreciated even if it is just a point in the right direction.

Regards. Richard Grant
0
Comment
Question by:bep0086
  • 2
2 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1341254
This have big count of code lines.
But you can made simple class with FormName, Size .... and create form when you load this component.

0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 200 total points
ID: 1341255
Hi bep0086
I try WriteComponentResFile( 'd:\mirek.dfm', MyForm ); and all is ok. What can't you do ? Mayby you use another method ? This metod create good dfm files and you can read this by ReadComponentResFile (..);
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now