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

TSpinEdit

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

Implements an integer-based spin edit control.

Declaration

Source position: spin.pp line 168

type TSpinEdit = class(TCustomSpinEdit)

public

  property AutoSelected: Boolean;

  

Set to True when the text selection was made automatically.

published

  property Align: TAlign;

  

Specifies the placement of the control on its Parent control.

  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;

  

Contains the minimum and maximum Width and Height for the 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: Integer;

  

The value by which the value of the control should be increased/decreased when the user clicks one of the arrows or one of the keyboard up/down arrows.

  property MaxValue: Integer;

  

Maximal value allowed for the spin edit control.

  property MinValue: Integer;

  

Minimal value allowed for the spin edit control.

  property OnChange: TNotifyEvent;

  

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

  property OnChangeBounds: TNotifyEvent;

  

Event handler signalled when the Bounds of the control have been changed.

  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;

  

Event handler signalled when a key up event has occurred for the control.

  property OnMouseDown: TMouseEvent;

  

Event handler signalled when a mouse down event is handled for the control.

  property OnMouseEnter: TNotifyEvent;

  

Event handler signalled when the mouse pointer has entered the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler signalled when the mouse pointer has left the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler signalled when a mouse up event is handled for the control.

  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 Hint display for the control.

  property TabStop: Boolean;

  

Enables navigation using the Tab key.

  property TabOrder: TTabOrder;

  

Indicates the navigation order for the control when the user presses the Tab or Shift+Tab key.

  property Value: Integer;

  

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

TSpinEdit

  

Implements an integer-based spin edit control.

|

TCustomSpinEdit

  

The base class for an integer-based spin edit control.

|

TCustomFloatSpinEdit

  

The base class for the float-based spin control.

|

TCustomEdit

  

The base class for controls presenting editable text.

|

TWinControl

  

Implements a windowed control 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

TSpinEdit is a TCustomSpinEdit descendant which implements an integer-based spin edit control. It provides an edit control where the Integer value can be entered directly, and has arrow buttons to allow the user to increment / decrement the value for the control.

TSpinEdit sets the visibility for properties introduced in ancestor classes.

Use TFloatSpinEdit to edit a float value in a spin edit control.

See also

TCustomSpinEdit

  

The base class for an integer-based spin edit control.

TFloatSpinEdit

  

Implements a float-based spin edit control.