[Overview][Classes][Procedures and functions][Index] Reference for unit 'Spin' (#lcl)

TCustomFloatSpinEdit

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The base class for the float-based spin control

Declaration

Source position: spin.pp line 32

type TCustomFloatSpinEdit = class(TCustomEdit) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  function RealGetText; override;

  

  procedure RealSetText(); override;

  procedure TextChanged; override;

  

  procedure SetDecimals(); virtual;

  

  procedure SetValue(); virtual;

  

  procedure SetMaxValue(); virtual;

  

  procedure SetMinValue(); virtual;

  

  procedure SetValueEmpty(); virtual;

  

  procedure SetIncrement(); virtual;

  

  procedure InitializeWnd; override;

  

  procedure FinalizeWnd; override;

  

  procedure Loaded; override;

  

  procedure KeyPress(); override;

  class function GetControlClassDefaultSize; override;

public

  constructor Create(); override;

  

  function GetLimitedValue(); virtual;

  

Limits the passed value according to spin edit minimum and maximum.

  function ValueToStr(); virtual;

  

Converts the passed value to string according to spin edit settings.

  function StrToValue(); virtual;

  

Converts the passed string to value according to spin edit settings.

  property DecimalPlaces: Integer; [rw]

  

Number of the decimal places shown in spin edit.

  property Increment: Double; [rw]

  

An amount to be incremented/decremented to the value when spin edit up/down arrow button is pushed.

  property MinValue: Double; [rw]

  

Minimal value allowed for the spin edit.

  property MaxValue: Double; [rw]

  

Maximal value allowed for the spin edit.

  property Value: Double; [rw]

  

The value of spin control.

  property ValueEmpty: Boolean; [rw]

  

If the Value property is assigned.

Inheritance

TCustomFloatSpinEdit

  

The base class for the float-based spin control

|

TCustomEdit

  

The base class for controls presenting editable text.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

The base class for the float-based spin edit control.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.