designdemo.lpr 616 B

1234567891011121314151617181920212223242526272829303132333435
  1. program designdemo;
  2. {$mode objfpc}
  3. { $DEFINE USEIDE}
  4. uses
  5. browserapp, JS, Classes, SysUtils, Web, designer, webideclient;
  6. type
  7. TMyApplication = class(TBrowserApplication)
  8. Public
  9. FDemo : TDesignDemo;
  10. FIDEIntf : TIDEClient;
  11. procedure doRun; override;
  12. end;
  13. procedure TMyApplication.doRun;
  14. begin
  15. FDemo:=TDesignDemo.Create(Self);
  16. {$IFDEF USEIDE}
  17. FIDEIntf:=TIDEClient.Create(Self);
  18. FDemo.IDEClient:=FIDEintf;
  19. FIDEIntf.RegisterClient;
  20. {$ENDIF}
  21. end;
  22. var
  23. Application : TMyApplication;
  24. begin
  25. Application:=TMyApplication.Create(nil);
  26. Application.Initialize;
  27. Application.Run;
  28. end.