Solved

Open Created Components

Posted on 2002-05-01
3
158 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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 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