Solved

Open Created Components

Posted on 2002-05-01
3
154 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

22 Experts available now in Live!

Get 1:1 Help Now