Class TCastleFloatEdit
Unit
Declaration
type TCastleFloatEdit = class(TCastleEdit)
Description
Descendant of TCastleEdit specialized for editing floating-point numbers. Use Value instead of Text.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleUserInterfaceFont
- TCastleEdit
- TCastleFloatEdit
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
procedure SetFocused(const AValue: Boolean); override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Text stored false; |
|
property TextTranslate default false; |
|
property Value: Single read GetValue write SetValue default 0; |
|
property Min: Single read FMin write FMin default 1.0; |
|
property Max: Single read FMax write FMax default 0.0; |
|
property DecimalDigits: Integer
read FDecimalDigits write SetDecimalDigits default 2; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
procedure SetFocused(const AValue: Boolean); override; |
|
This item has no description. Showing description inherited from TCastleUserInterface.SetFocused. Called when this control becomes or stops being focused, that is: under the mouse cursor and will receive events. This updates Focused property. This also calls OnInternalMouseEnter / OnInternalMouseLeave. |
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
This item has no description. Showing description inherited from TCastleComponent.PropertySections. Section where to show property in the editor. |
Properties
property Text stored false; |
|
In case of this descendant, Text is always derived from Value. |
property TextTranslate default false; |
|
This item has no description. Showing description inherited from TCastleEdit.TextTranslate. Should the Text be localized (translated into other languages). Determines if the property is enumerated by TCastleComponent.TranslateProperties, which affects the rest of localization routines. |
property Value: Single read GetValue write SetValue default 0; |
|
This item has no description. |
property Min: Single read FMin write FMin default 1.0; |
|
Minimum and maximum limits. Applied only if Min <= Max, which is not the case by default. |
property Max: Single read FMax write FMax default 0.0; |
|
This item has no description. |
property DecimalDigits: Integer
read FDecimalDigits write SetDecimalDigits default 2; |
|
How many decimal digits to display (and preserve). Set to -1 to display (and preserve) all digits, but beware that many numbers will then look hard to read, because they cannot be represented perfectly as a float. E.g. inputting "0.2" will change (in SetFocused) to something like "0.200000003" since the number 0.2 cannot be represented precisely. |
Generated by PasDoc 0.16.0-snapshot.