FLEdit

TFloatEdit / TSpinFloatEdit / TDBFloatEdit components
Download

FLEdit Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Markus Stephany
  • Operating Systems:
  • Windows All
  • File Size:
  • 46 KB

FLEdit Tags


FLEdit Description

TFloatEdit is a descendant of TCustomEdit which is able to edit and check floating point values. You can set minimum and maximum values and the number of digits to display. TSpinFloatEdit is derived from TFloatEdit. It additionally implements increment and decrement buttons. You will be able to define a static increment value to use when those buttons are clicked or compute the increment using an event handler. TDBFloatEdit is a database aware version of TFloatEdit. TFloatEdit, TDBFloatEdit added published properties: SupportsThousandSeparator: Boolean (r/w) if set to true, numbers are displayed using the current locale's thousand separator AdditionalDecimalSeparator: Char (r/w) if this property has a value different from #0, this char is translated to the actual decimal separator when typing values. this can be used to allow additional decimal separators during typing Digits: Byte (r/w) the number of decimal digits (digits after the decimal separator), range 0..18 Min: Extended (r/w) the lowest valid value Max: Extended (r/w) the highest valid value Value: Extended (r/w) the current value ErrorMessage :string (r/w) the message that will be displayed if an invalid (not a number, out of range) value is typed in the edit box, if this is the empty string ("", default), no error message will be displayed, and the value will be reset to a default Alignment: TAlignment (r/w) how to align the text in the edit box (taLeftJustify, taCenter, taRightJustify (default)) About: string (r) shows the version and copyright holder of the component in the delphi ide, readonly added events: OnEnterPress : TKeyPressEvent (r/w) this event handler is called whenever the ENTER (RETURN) key is pressed changed properties: Text: string (r) this property is readonly in TFloatEdit, you can just read the current value in textual format. to change the value, use the Value property instead top TSpinFloatEdit TSpinFloatEdit inherits all properties of TCustomFloatEdit (as TFloatEdit does), it additionally implements the following: added types: TComputedIncrementEvent = procedure (Sender: TObject; const bIncrement:Boolean) of object; this event handler is used in the OnComputedIncrement (see below) event added published properties: EditorEnabled: Boolean (rw) if this is set to False (default is True), you cannot enter values in the edit box, you can just use the increment/decrement buttons and keys (up: CURSOR UP, down: CURSOR DOWN) Increment: Extended (rw) the value that is added to/substracted from the current value on increment/decrement event added events: OnComputedIncrement : TComputedIncrement (r/w) if a method is assigned to this event handler, it will be called whenever an increment/decrement event happens rather than adding/substracting the Increment property's value. the boolean parameter bIncrement tells you whether an increment (true) or decrement (false) event is occured. in this method you may implement your own increment/decrement algorithm


FLEdit Related Software