Ignore:
Timestamp:
Jan 18, 2015, 11:41:05 PM (10 years ago)
Author:
chronos
Message:
  • Added: Support for float type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormRecord.pas

    r4 r5  
    141141        Controls.Add(NewControl);
    142142      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;
    143153    end;
    144154  end;
     
    155165      ftDateTime: TValueDateTime(Row.Values[I]).Value := TDateEdit(Controls[I]).Date;
    156166      ftBoolean: TValueBoolean(Row.Values[I]).Value := TCheckBox(Controls[I]).Checked;
     167      ftFloat: TValueFloat(Row.Values[I]).Value := TFloatSpinEdit(Controls[I]).Value;
    157168    end;
    158169  end;
Note: See TracChangeset for help on using the changeset viewer.