Delphi Float Spin Edit

The floating-point spin edit Embarcadero forgot to ship.

Step size, min/max, decimal places, formatting — the way TSpinEdit should have worked from day one.

The VCL ships TSpinEdit for integers, but anything more sophisticated — a decimal step, a constrained range, a specific number of decimal places — means you build your own. This component is "your own", reused: a clean floating-point spin edit with everything TSpinEdit doesn't have.

What it does

A spin-edit-style control that holds a floating-point value (Double precision). Configurable minimum, maximum, step size, and number of decimal places. Up/down buttons increment by the step. Direct typing is validated against the range and clamped on commit. Locale-aware decimal separator (comma vs dot).

Properties

  • Value: Double — the current value
  • MinValue / MaxValue: Double — the allowed range
  • Increment: Double — step size for the up/down buttons
  • DecimalPlaces: Integer — precision shown
  • ReadOnly: Boolean — lock the value for display-only use

When you need it

  • Scientific or engineering apps with continuous-valued parameters
  • Audio / video apps with percentage, decibel, or rate controls
  • Any UI where you'd otherwise have to write a "TEdit + buttons + parsing" combo

What's bundled

  • VCL component package for Delphi (current versions)
  • Full Pascal source
  • Demo project

System requirements

  • Embarcadero Delphi (works back to XE)
  • VCL target (Windows)

Browse the full catalog

49 small, sharp Windows utilities. All freeware. All by the same author.