Changeset 5 for trunk/Forms/UFormRecord.pas
- Timestamp:
- Jan 18, 2015, 11:41:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormRecord.pas
r4 r5 141 141 Controls.Add(NewControl); 142 142 end; 143 ftFloat: begin 144 NewControl := TFloatSpinEdit.Create(Panel1); 145 NewControl.Parent := Panel1; 146 NewControl.Left := CellRect.Left; 147 NewControl.Top := CellRect.Top + NewLabel.Height + 6; 148 NewControl.Width := CellRect.Right - CellRect.Left; 149 NewControl.Visible := True; 150 TFloatSpinEdit(NewControl).Value := TValueFloat(Row.Values[I]).Value; 151 Controls.Add(NewControl); 152 end; 143 153 end; 144 154 end; … … 155 165 ftDateTime: TValueDateTime(Row.Values[I]).Value := TDateEdit(Controls[I]).Date; 156 166 ftBoolean: TValueBoolean(Row.Values[I]).Value := TCheckBox(Controls[I]).Checked; 167 ftFloat: TValueFloat(Row.Values[I]).Value := TFloatSpinEdit(Controls[I]).Value; 157 168 end; 158 169 end;
Note:
See TracChangeset
for help on using the changeset viewer.