Open Created Components

How to open (create) form file (source code) components wich are once created at run-time ?

Thanks.
treqwAsked:
Who is Participating?
 
CesarioCommented:
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
 
CesarioCommented:
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
 
treqwAuthor Commented:
Yess.

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.