Changeset 223 for branches/CpuSingleSize/Forms/UFormDevices.pas
- Timestamp:
- Jul 12, 2022, 10:43:40 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/UFormDevices.pas
r220 r223 1 1 unit UFormDevices; 2 3 {$mode delphi}4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, UMachine; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, ExtCtrls, 7 UMachine; 9 8 10 9 type … … 35 34 const 36 35 DeviceClassFormClasses: array[TDeviceClass] of TFormDeviceClass = ( 37 nil, nil, nil, TFormStorage, TFormScreen, TFormConsole );36 nil, nil, nil, TFormStorage, TFormScreen, TFormConsole, nil); 38 37 39 38 { TFormDevices } … … 55 54 FormClass := DeviceClassFormClasses[Device.DeviceClass]; 56 55 if Assigned(FormClass) then begin 57 Device.Form := TFormDevice(FormClass.Create(nil));56 Device.Form := FormClass.Create(nil); 58 57 Device.Form.Device := Device; 59 58 Device.Form.Show;
Note:
See TracChangeset
for help on using the changeset viewer.