Changeset 30 for trunk/Forms
- Timestamp:
- Dec 23, 2016, 10:07:39 AM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r28 r30 16 16 object PaintBox1: TPaintBox 17 17 Left = 0 18 Height = 5 8719 Top = 018 Height = 561 19 Top = 26 20 20 Width = 920 21 21 Align = alClient … … 39 39 end> 40 40 SimplePanel = False 41 end 42 object ToolBar1: TToolBar 43 Left = 0 44 Height = 26 45 Top = 0 46 Width = 920 47 Caption = 'ToolBar1' 48 TabOrder = 1 49 object ToolButton1: TToolButton 50 Left = 1 51 Top = 2 52 Action = Core.AFileNew 53 end 41 54 end 42 55 object MainMenu1: TMainMenu -
trunk/Forms/UFormMain.pas
r29 r30 40 40 StatusBar1: TStatusBar; 41 41 Timer1: TTimer; 42 ToolBar1: TToolBar; 43 ToolButton1: TToolButton; 42 44 procedure FormActivate(Sender: TObject); 43 45 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 134 136 View.DestRect := Bounds(0, 0, PaintBox1.Width, PaintBox1.Height); 135 137 //Bitmap.PaintToCanvas(TempBitmap.Canvas, View.SrcRect); 136 //Bitmap.PaintToBitmap(TempBitmap, View.SrcRect);138 Bitmap.PaintToBitmap(TempBitmap, View.SrcRect); 137 139 //TempBitmap.EndUpdate(False); 138 140 PaintBox1.Canvas.StretchDraw(View.DestRect, TempBitmap); -
trunk/Forms/UFormNew.pas
r29 r30 74 74 75 75 // Default 76 SpinEditWidth.Value := 200; 77 SpinEditHeight.Value := 100; 76 if Assigned(Core.Project) then begin 77 SpinEditWidth.Value := Core.Project.Bitmap.Size.X; 78 SpinEditHeight.Value := Core.Project.Bitmap.Size.Y; 79 end else begin 80 SpinEditWidth.Value := 200; 81 SpinEditHeight.Value := 100; 82 end; 78 83 SpinEditDPI.Value := 72; 79 84 end;
Note:
See TracChangeset
for help on using the changeset viewer.