2016-09-17 18:34:47 +00:00
|
|
|
program demo;
|
2016-09-02 17:58:47 +00:00
|
|
|
|
2016-09-03 15:09:35 +00:00
|
|
|
{ IMPORTANT NOTE:
|
|
|
|
If compilation aborts with an error that libkernel32a, libgcc.a and libmsvcrt.a
|
|
|
|
cannot be found then do a rebuild ("Run" / "Build"). Or add the corresponding
|
|
|
|
folder to the library path of the project, the obj files are in folder
|
|
|
|
mORMotSourceHere/fpc-win32, etc. }
|
|
|
|
|
2016-09-02 20:01:44 +00:00
|
|
|
{ commandline parameters:
|
2016-09-03 15:09:35 +00:00
|
|
|
- noserver ---> run without server
|
|
|
|
- localhost ---> server ip is localhost
|
|
|
|
- empty ---> server is tvplanit demo server on Amazon Web Services
|
|
|
|
- xxx.xxx.xxx.xxx ---> ip address for server connection. }
|
2016-09-02 20:01:44 +00:00
|
|
|
|
2016-09-02 17:58:47 +00:00
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
|
|
cthreads,
|
|
|
|
{$ENDIF}{$ENDIF}
|
|
|
|
Interfaces, // this includes the LCL widgetset
|
|
|
|
Forms, demoMain, laz_visualplanit, LCLTranslator, DefaultTranslator,
|
|
|
|
printer4lazarus, mormotdatamodule;
|
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
|
|
|
begin
|
2016-09-02 20:01:44 +00:00
|
|
|
Application.Title := 'TurboPower VisualPlanIt & mORMot Demo';
|
2016-09-02 17:58:47 +00:00
|
|
|
RequireDerivedFormResource := True;
|
|
|
|
Application.Initialize;
|
|
|
|
Application.CreateForm(TDemoDM, DemoDM);
|
|
|
|
Application.CreateForm(TMainForm, MainForm);
|
2016-09-17 18:34:47 +00:00
|
|
|
|
|
|
|
// Fix the location of the localization and language files - their relative
|
|
|
|
// path is different here from those in the other "fulldemo".
|
|
|
|
MainForm.VpControlLink1.LocalizationFile := '../../../source/vplocalize.xml';
|
|
|
|
MainForm.LanguageDir := '../../../languages';
|
|
|
|
// ... and expand the form caption
|
|
|
|
MainForm.Caption := 'TurboPower VisualPlanIt & mORMot Demo';
|
|
|
|
|
2016-09-02 17:58:47 +00:00
|
|
|
Application.Run;
|
|
|
|
end.
|
|
|
|
|