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

TFloatSpinEdit

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

Implements a float-based spin edit control.

Declaration

Source position: spin.pp line 87

type TFloatSpinEdit = class(TCustomFloatSpinEdit)

public

  property AutoSelected: Boolean;

  

Indicates whether the selected content in the control has been automatically selected.

published

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property Alignment: TAlignment;

  

The horizontal alignment for the text in the control (left, right, or centered).

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property AutoSelect: Boolean;

  

Enables auto-selection of text when focused.

  property AutoSize: Boolean;

  

Allows automatic adjustment of the size for the control, according to its content.

  property BorderSpacing: TControlBorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property Color: TColor;

  

The background color of the control.

  property Constraints: TSizeConstraints;

  

The minimum and maximum Width and Height for the control.

  property DecimalPlaces: Integer;

  

Number of the decimal places displayed in the spin edit control.

  property EditorEnabled: Boolean;

  

Indicates whether the value for the control can be entered directly into its edit box.

  property Enabled: Boolean;

  

Determines whether the control reacts on mouse or keyboard input.

  property Font: TFont;

  

The font to be used for text display in this control.

  property Increment: Double;

  

Amount applied to the control value when the up or down arrow button is pushed.

  property MaxValue: Double;

  

Maximal value allowed for the spin edit control.

  property MinValue: Double;

  

Minimal value allowed for the spin edit control.

  property OnChange: TNotifyEvent;

  

The OnChange event is fired when spin edit value has changed.

  property OnChangeBounds: TNotifyEvent;

  

Event handler for a change of the Bounds of the control.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnEditingDone: TNotifyEvent;

  

Event handler signalled when editing is done.

  property OnEnter: TNotifyEvent;

  

Handler for control receiving the focus.

  property OnExit: TNotifyEvent;

  

Handler for control loosing the focus; This is a good place for checking the finished user input.

  property OnKeyDown: TKeyEvent;

  

Handler for keyboard key pressed.

  property OnKeyPress: TKeyPressEvent;

  

Handler for a character entered by the user.

  property OnKeyUp: TKeyEvent;

  

Handler for keyboard key released.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnMouseEnter: TNotifyEvent;

  

Event handler for mouse entering the area of the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler for mouse leaving the area of the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler for mouse button going up.

  property OnMouseWheel: TMouseWheelEvent;

  

Event handler for mouse wheel turned.

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  

Event handler for downward movement of mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Event handler for upward movement of the mouse wheel.

  property OnMouseWheelHorz: TMouseWheelEvent;

  

Event handler for horizontal movements of the mouse wheel.

  property OnMouseWheelLeft: TMouseWheelUpDownEvent;

  

Event handler for left movements of the mouse wheel.

  property OnMouseWheelRight: TMouseWheelUpDownEvent;

  

Event handler for right movements of the mouse wheel.

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnUTF8KeyPress: TUTF8KeyPressEvent;

  

Handler for a character entered by the user.

  property ParentColor: Boolean;

  

Uses the Color from the Parent control, when enabled.

  property ParentFont: Boolean;

  

If true, the Font of the control will be the same as the one from the Parent. Default is true.

  property ParentShowHint: Boolean;

  

If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true.

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control.

  property ReadOnly: Boolean;

  

Indicates if the user is prevented from changing the value for the Text in the control.

  property ShowHint: Boolean;

  

Enables the Hint display.

  property TabStop: Boolean;

  

Enables navigation using the Tab key.

  property TabOrder: TTabOrder;

  

Determines the sequence of control navigation when the user presses the Tab key.

  property Value: Double;

  

The value for the spin edit control.

  property Visible: Boolean;

  

Allows the control, and all of its children, to be displayed or hidden.

end;

Inheritance

TFloatSpinEdit

  

Implements a float-based spin edit control.

|

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 which have an associated widget.

|

TComponent

?

TObject

Description

TFloatSpinEdit is a TCustomFloatSpinEdit descendant which implements a spin edit control for a Float value. It provides an edit control for the numeric value and up / down buttons that can be clicked to increment or decrement the Value for the control. TFloatSpinEdit sets the visibility for properties introduced in ancestor classes.

Use TSpinEdit to edit an Integer value.

See also

TSpinEdit

  

Implements an integer-based spin edit control.

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