[Overview][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
The base class for the float-based spin control.
Source position: spin.pp line 32
type TCustomFloatSpinEdit = class(TCustomEdit) |
||
protected |
||
class procedure WSRegisterClass; override; |
|
Registers this component class with the current WidgetSet. |
procedure Change; override; |
|
Updates Modified prior to sending control messages and signalling OnChange handler(s). |
function RealGetText; override; |
|
Gets the value for the text in the control. |
procedure RealSetText(); override; |
|
Updates Modified and the TextHint display when storing the new Text value. |
procedure TextChanged; override; |
|
Updates the control state when the value in Text has been changed. |
procedure SetDecimals(); virtual; |
|
Sets the value for the DecimalPlaces property. |
procedure SetValue(); virtual; |
|
Sets the value for the Value property. |
procedure SetMaxValue(); virtual; |
|
Sets the value for the MaxValue property. |
procedure SetMinValue(); virtual; |
|
Sets the value for the MinValue property. |
procedure SetValueEmpty(); virtual; |
|
Sets the value for the ValueEmpty property. |
procedure SetIncrement(); virtual; |
|
Sets the value for the Increment property. |
procedure InitializeWnd; override; |
|
Creates or re-creates the handle for the windowed control. |
procedure FinalizeWnd; override; |
|
Frees the handle for the windowed control. |
procedure Loaded; override; |
|
Performs actions when LCL component streaming is completed. |
procedure KeyPress(); override; |
|
Handles key press events for the control. |
class function GetControlClassDefaultSize; override; |
|
Gets the default size for new instances of the class. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
function GetLimitedValue(); virtual; |
|
Limits the specified value to the minimum and maximum values for the control. |
function ValueToStr(); virtual; |
|
Converts the specified value to a String type using the spin edit settings. |
function StrToValue(); virtual; |
|
Converts the specified string to a float value according to spin edit settings. |
property DecimalPlaces: Integer; [rw] |
|
Number of the decimal places displayed in the spin edit control. |
property EditorEnabled: Boolean; [rw] |
|
Indicates whether the value for the control can be entered directly into its edit box. |
property Increment: Double; [rws] |
|
Amount applied to the control value when the up or down arrow button is pushed. |
property MinValue: Double; [rw] |
|
Minimal value allowed for the spin edit control. |
property MaxValue: Double; [rws] |
|
Maximal value allowed for the spin edit control. |
property Value: Double; [rw] |
|
The value for the spin edit control. |
property ValueEmpty: Boolean; [rw] |
|
Indicates if a value has not been assigned for the control. |
end; |
|
The base class for the float-based spin control. |
|
| | ||
|
The base class for controls presenting editable text. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TCustomFloatSpinEdit is a TCustomEdit descendant which implements the base class for the float-based spin edit control. It provides an edit control where the Float value can be entered directly, and up / down buttons which can be used to increment or decrement the value for the control.
Use the MinValue and MaxValue properties to define the lower and upper limits for the value in the control.
Use the Increment property to set the value added to or subtracted from the control value when the up or down buttons are clicked.
lazarus-ccr.sourceforge.net |