Solved

Open Created Components

Posted on 2002-05-01
3
160 Views
Last Modified: 2010-04-04
How to open (create) form file (source code) components wich are once created at run-time ?

Thanks.
0
Comment
Question by:treqw
[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
3 Comments
 
LVL 8

Expert Comment

by:Cesario
ID: 6983586
I dont understand your Question!

you whant to save a form with some components you added at run time and you whant to load it again ?

Best Regards

Cesario
0
 

Author Comment

by:treqw
ID: 6983636
Yess.

Thanks.
0
 
LVL 8

Accepted Solution

by:
Cesario earned 500 total points
ID: 6983684
Well the form must have a Panel ...


1. Register all Controls you are using in you form:

Procedure tMainForm.RegisterFrameClasses;
Begin

  RegisterClass ( tPanel  );
  RegisterClass ( tFcLabel      );
  RegisterClass ( tImage        );
  RegisterClass ( tDbText       );
  RegisterClass ( TMLSBevel     );
  RegisterClass ( TwwDBRichEdit );
  RegisterClass ( TMLSShape     );
  RegisterClass ( TDbGrid       );
 
End;

2. To Save The Form ( i save only the content of Panel1)
WriteComponentResFile (FrameName,Panel1);

3. to load the Form:
    ReadComponentResFile (FrameName,Panel1);

good luck
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can i search if string exist in array ? 3 79
JAudiorecorder record freezing the app 29 92
Delphi: sending SMS on android platform 1 103
Firemonkey BASS_Init into a thread 17 84
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 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