Changeset 3 for trunk/UCore.pas
- Timestamp:
- Sep 15, 2014, 11:13:21 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r2 r3 13 13 14 14 TCore = class(TDataModule) 15 AImageClear: TAction; 16 AExit: TAction; 15 17 AProjectNew: TAction; 16 18 ActionList1: TActionList; 19 procedure AExitExecute(Sender: TObject); 20 procedure AImageClearExecute(Sender: TObject); 17 21 procedure AProjectNewExecute(Sender: TObject); 18 22 procedure DataModuleCreate(Sender: TObject); … … 31 35 32 36 uses 33 UFormNew, UFormMain ;37 UFormNew, UFormMain, UColorRGBA8, Forms; 34 38 35 39 { TCore } … … 56 60 Project.Bitmap.ColorFormat := ColorManager.Formats[FormNew.ComboBoxColorFormat.ItemIndex]; 57 61 Project.Bitmap.DPI := FormNew.SpinEditDPI.Value; 58 Project.Bitmap.PaintToCanvas(FormMain.PaintBox1.Canvas);62 FormMain.Redraw; 59 63 end; 64 end; 65 66 procedure TCore.AExitExecute(Sender: TObject); 67 begin 68 Application.Terminate; 69 end; 70 71 procedure TCore.AImageClearExecute(Sender: TObject); 72 begin 73 Project.Bitmap.Clear; 74 FormMain.Redraw; 60 75 end; 61 76
Note:
See TracChangeset
for help on using the changeset viewer.