Solved

Open Created Components

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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