Changeset 33 for trunk/Forms/UFormNew.pas
- Timestamp:
- Jan 5, 2017, 11:48:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r30 r33 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Spin, 9 StdCtrls, ActnList, UFGraphics, URegistry;9 StdCtrls, ActnList, Menus, UFGraphics, URegistry; 10 10 11 11 type … … 27 27 SpinEditHeight: TSpinEdit; 28 28 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 29 procedure FormCreate(Sender: TObject); 29 30 procedure FormShow(Sender: TObject); 30 31 procedure SpinEditWidthChange(Sender: TObject); … … 32 33 { private declarations } 33 34 public 35 DefaultSize: TPoint; 34 36 end; 35 37 … … 50 52 ColorFormat: TColorFormat; 51 53 begin 52 ColorFormat := ColorFormatManager.Formats[ComboBoxColorFormat.ItemIndex];54 ColorFormat := TColorFormat(ColorFormatManager.Formats.Items[ComboBoxColorFormat.ItemIndex]); 53 55 LabelMemRequire.Caption := IntToStr(SpinEditWidth.Value * SpinEditHeight.Value * 54 56 ColorFormat.BitDepth div 8) + ' bytes'; … … 78 80 SpinEditHeight.Value := Core.Project.Bitmap.Size.Y; 79 81 end else begin 80 SpinEditWidth.Value := 200;81 SpinEditHeight.Value := 100;82 SpinEditWidth.Value := DefaultSize.X; 83 SpinEditHeight.Value := DefaultSize.X; 82 84 end; 83 85 SpinEditDPI.Value := 72; … … 90 92 end; 91 93 94 procedure TFormNew.FormCreate(Sender: TObject); 95 begin 96 DefaultSize := Point(600, 200); 97 end; 98 92 99 end. 93 100
Note:
See TracChangeset
for help on using the changeset viewer.