Recent

Author Topic: Save/Load Forms RunTime ?  (Read 7907 times)

Eric.Developer

  • New Member
  • *
  • Posts: 14
    • Developer Systems
Save/Load Forms RunTime ?
« on: April 18, 2010, 01:48:31 pm »
Hi,
Is it possible to save/load forms, edit, etc in time of execution? as gtk (XML)
Eric Developer
{Delphi, Lazarus, PHP}, SQL, FastReport
Xailer, Fivewin, Hwgui, Harbour, Clipper, ADVPL
Freelance, Developments

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Save/Load Forms RunTime ?
« Reply #1 on: April 18, 2010, 02:25:01 pm »
You refer to form properties or to the entire resource file of the form?

Eric.Developer

  • New Member
  • *
  • Posts: 14
    • Developer Systems
Re: Save/Load Forms RunTime ?
« Reply #2 on: April 18, 2010, 03:16:03 pm »
load all content Form dynamically, in the execution of the application
Eric Developer
{Delphi, Lazarus, PHP}, SQL, FastReport
Xailer, Fivewin, Hwgui, Harbour, Clipper, ADVPL
Freelance, Developments

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Save/Load Forms RunTime ?
« Reply #3 on: April 18, 2010, 06:58:46 pm »
Well, you can design your form at then create it with:

Code: [Select]
Application.CreateForm(TMyForm, MyForm);
After designing it on the editor, you must remove the above line from the project unit (LPR file) and then you can create it in any place on your code.

Eric.Developer

  • New Member
  • *
  • Posts: 14
    • Developer Systems
Re: Save/Load Forms RunTime ?
« Reply #4 on: April 18, 2010, 11:47:27 pm »
Hi typo,
that is not the traditional? form will be being compiled.
gtk (to read file XML), HTML, etc, they are dynamic, not needing to recompile if it alters the form
Eric Developer
{Delphi, Lazarus, PHP}, SQL, FastReport
Xailer, Fivewin, Hwgui, Harbour, Clipper, ADVPL
Freelance, Developments

Leledumbo

  • Hero Member
  • *****
  • Posts: 8790
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Save/Load Forms RunTime ?
« Reply #5 on: April 19, 2010, 06:10:06 am »
Try our holy wiki.

Eric.Developer

  • New Member
  • *
  • Posts: 14
    • Developer Systems
Re: Save/Load Forms RunTime ?
« Reply #6 on: April 24, 2010, 05:02:26 pm »
thankful for the answer
didn't I still try, please, could it exemplify? load file xml
1 form with 2 edit + 2 buttons (to close the window)

there is also:
http://wiki.freepascal.org/Pascal_Script

which will the simplest be of using?

Try our holy wiki.
« Last Edit: April 24, 2010, 05:36:39 pm by Eric.Developer »
Eric Developer
{Delphi, Lazarus, PHP}, SQL, FastReport
Xailer, Fivewin, Hwgui, Harbour, Clipper, ADVPL
Freelance, Developments

 

TinyPortal © 2005-2018