Solved

loading DFM forms into an app at run-time

Posted on 1997-08-12
2
618 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

687 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