source: branches/Xvcl/lddesktop.dpr

Last change on this file was 21, checked in by chronos, 12 years ago
  • Added: Custom independent basic generics implementation.
File size: 1.4 KB
Line 
1program lddesktop;
2
3uses
4 Vcl.Forms,
5 UFormMain in 'UFormMain.pas' {Form1},
6 Xvcl.Controls in 'Xvcl.Controls.pas',
7 TestApplication in 'Applications\TestApplication.pas',
8 Xvcl.Classes in 'Xvcl.Classes.pas',
9 Xvcl.Graphics in 'Xvcl.Graphics.pas',
10 Xvcl.Forms in 'Xvcl.Forms.pas',
11 Xvcl.Kernel in 'Xvcl.Kernel.pas',
12 Driver.VideoVCL in 'Drivers\Driver.VideoVCL.pas',
13 Driver.SystemVCL in 'Drivers\Driver.SystemVCL.pas',
14 Driver.KeyboardVCL in 'Drivers\Driver.KeyboardVCL.pas',
15 Driver.MouseVCL in 'Drivers\Driver.MouseVCL.pas',
16 Xvcl.Generics in 'Xvcl.Generics.pas';
17
18{$R *.res}
19
20var
21 Kernel: TKernel;
22 DriverSystem: TDriver;
23 DriverVideo: TDriver;
24 DriverKeyboard: TDriver;
25 DriverMouse: TDriver;
26 TestApplication: TApplication;
27begin
28 Kernel := TKernel.Create;
29 DriverSystem := TDriverSystemVCL.Create;
30 DriverSystem.Kernel := Kernel;
31 Kernel.Drivers.Add(DriverSystem);
32 DriverVideo := TDriverVideoVCL.Create;
33 DriverVideo.Kernel := Kernel;
34 Kernel.Drivers.Add(DriverVideo);
35 DriverKeyboard := TDriverKeyboardVCL.Create;
36 DriverKeyboard.Kernel := Kernel;
37 Kernel.Drivers.Add(DriverKeyboard);
38 DriverMouse := TDriverMouseVCL.Create;
39 DriverMouse.Kernel := Kernel;
40 Kernel.Drivers.Add(DriverMouse);
41 TestApplication := TTestApplication.Create;
42 TestApplication.Screen := Kernel.Screen;
43 Kernel.StartOnBoot.Add(TestApplication);
44 Kernel.Boot;
45 Kernel.Destroy;
46end.
Note: See TracBrowser for help on using the repository browser.