Changeset 5 for trunk/Forms/UFormField.pas
- Timestamp:
- Jan 18, 2015, 11:41:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormField.pas
r4 r5 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, EditBtn, UDatabase;9 ComCtrls, EditBtn, Spin, UDatabase; 10 10 11 11 type … … 23 23 EditTextBefore: TEdit; 24 24 EditTextAfter: TEdit; 25 FloatSpinEditMin: TFloatSpinEdit; 26 FloatSpinEditMax: TFloatSpinEdit; 25 27 Label1: TLabel; 28 Label10: TLabel; 29 Label11: TLabel; 26 30 Label2: TLabel; 27 31 Label3: TLabel; … … 30 34 Label6: TLabel; 31 35 Label7: TLabel; 36 Label8: TLabel; 37 Label9: TLabel; 32 38 PageControl1: TPageControl; 39 SpinEditMin: TSpinEdit; 40 SpinEditMax: TSpinEdit; 41 TabSheetFloat: TTabSheet; 33 42 TabSheetDateTime: TTabSheet; 34 43 TabSheetInteger: TTabSheet; … … 88 97 DateEditMax.Date := TFieldDateTime(Field.TypeRelated).Max; 89 98 end; 99 if Field.FieldType = ftInteger then begin 100 SpinEditMin.Value := TFieldInteger(Field.TypeRelated).Min; 101 SpinEditMax.Value := TFieldInteger(Field.TypeRelated).Max; 102 end; 103 if Field.FieldType = ftFloat then begin 104 FloatSpinEditMin.Value := TFieldFloat(Field.TypeRelated).Min; 105 FloatSpinEditMax.Value := TFieldFloat(Field.TypeRelated).Max; 106 end; 90 107 end; 91 108 … … 102 119 TFieldDateTime(Field.TypeRelated).Max := DateEditMax.Date; 103 120 end; 121 if Field.FieldType = ftInteger then begin 122 TFieldInteger(Field.TypeRelated).Min := SpinEditMin.Value; 123 TFieldInteger(Field.TypeRelated).Max := SpinEditMax.Value; 124 end; 125 if Field.FieldType = ftFloat then begin 126 TFieldFloat(Field.TypeRelated).Min := FloatSpinEditMin.Value; 127 TFieldFloat(Field.TypeRelated).Max := FloatSpinEditMax.Value; 128 end; 104 129 end; 105 130
Note:
See TracChangeset
for help on using the changeset viewer.