CustomEditBox¶
Qualified name: delphifmx.CustomEditBox
- class CustomEditBox¶
Bases:
CustomEditBase class for all edit boxes that manipulate only numerical values. TCustomEditBox is the base class for all edit boxes that manipulate only numerical values, such as a TNumberBox. TCustomEditBox implements functionality to set the minimum and maximum value that this edit box can display, and also the possibility to specify the number of decimal digits of the displayed value. If you want to create your own custom edit box control that manipulates number data, then you should derive from TCustomEditBox.
Methods
Responds after the last constructor has executed and loads the control presentation.
TStyledControl.ApplyStyleLookup() Gets and applies the style of a TStyledControl.
TStyledControl.Inflate() Call this procedure to get and apply its style lookup.
TStyledControl.NeedStyleLookup() Call this procedure to indicate that this control requires to get and apply its style lookup.
Embarcadero Technologies does not currently have any additional information.
Embarcadero Technologies does not currently have any additional information.
Attributes
AbsoluteClipRectSpecifies the absolute rectangle of the control after all its parent controls clip it.
AbsoluteEnabledSpecifies whether the control is absolutely enabled.
AbsoluteHeightSpecifies the absolute height of the control.
AbsoluteMatrixSpecifies the absolute transformation matrix of the control.
AbsoluteOpacitySpecifies the absolute opacity of the control.
AbsoluteRectSpecifies the absolute rectangle that bounds the control.
AbsoluteScaleSpecifies the absolute scale of the control.
AbsoluteWidthSpecifies the absolute width of the control.
ActionClientSpecifies whether the component object has an associated action.
Updates the width and height of this control according to its current style
Determines if and how the width and height of this control should be modified to take the fixed space dictated by the style of this control
AlignSpecifies the alignment options (top, left, client, and so on) of this control.
AnchorsSpecifies how the control is anchored to its parent.
ApplyingEffectA flag that signals when a control is in the process of applying an effect.
AutoCaptureSpecifies whether the control captures mouse events.
AutoSelectbool:
Specifies whether the control's text should be translated
AxisAlignedRectA TRectF defined by the width and height of the control.
BoundsRectSpecifies the bounding rectangle of the control.
ButtonsContentReturns the control that contains the edit buttons associated with the edit control.
CanParentFocusSpecifies whether the parent of this control should be evaluated to receive focus.
CanvasProvides the drawing surface of the control.
CaretRepresents the caret of the control.
CaretPositionProvides access to the caret position in this edit control.
CharCaseIt defines whether to implement the UPPER or lower case conversion to the memo's text.
CheckSpellingDefines whether the spell-checking feature of the edit control is on or off.
ChildrenStores an array of children attached to this parent component.
ChildrenCountRead-only property that specifies the number of children in the children list.
ChildrenRectSpecifies the bigger rectangle area occupied by parent and children controls.
ClassNameReturns the TObject.ClassName
ClipChildrenSpecifies if children of the control should be clipped to the control's on-screen region.
ClipParentSpecifies whether the current control has clipped its parent.
ClipRectSpecifies the bound rectangle to be clipped.
ComObjectSpecifies the interface reference implemented by the component.
ComponentCountReturns the owned component count
ComponentIndexIndicates the position of the component in its owner's Components property array.
ComponentStateDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStyleGoverns the behavior of the component.
ComponentsReturns an iterator over the owned components
ControlTypeControlType:
ControlsReturns an iterator over contained controls
ControlsCountReturns the count of contained controls
Image to use to represent the mouse pointer when it passes into the region covered by the control.
DataStores a Tvalue, which is a data structure that can store different kinds of data types.
Specifies the number of decimal positions of the displayed Value.
DefaultSizeEmbarcadero Technologies does not currently have any additional information.
Returns a string with the name of the default style of this control
DefaultTextSettingsStores a TTextSettings type object keeping the default values of the text representation properties.
DesignInfoContains information used by the Form designer.
DisableDisappearEmbarcadero Technologies does not currently have any additional information.
DisableFocusEffectSpecifies whether the control has the focus effect disabled.
DragModeSpecifies how the control initiates drag-and-drop operations.
EnableDragHighlightSpecifies whether the control is highlighted when the dragged object is over it.
EnabledSpecifies whether the control responds to mouse, keyboard, and timer events.
FilterCharSpecifies which characters are allowed to be typed into this edit control.
FixedSizeEmbarcadero Technologies does not currently have any additional information.
Specifies the font to use when rendering the text.
Specifies the color of the text in the edit control.
HasAfterPaintEffectSpecifies whether the control has an effect that is applied after the control is painted.
HasClipParentControl that is a direct child of this control and has clipped this control.
HasDisablePaintEffectSpecifies whether the control's effect is painted.
HasEffectSpecifies whether the control has an applied effect.
HeightHeight specifies the vertical size of the control (in dp).
HelpContextContains the numeric context ID that identifies the Help topic for the control.
HelpKeywordContains the keyword string that identifies the Help topic for the control.
HelpTypeSpecifies whether the control's context-sensitive Help topic is identified by a context ID or by keyword.
HideSelectionOnExitbool:
HintSpecifies the text string that appears when the user moves the mouse over a control.
HitTestEnables the control to capture mouse events.
Represents the value with which the number is incremented or decremented when, while holding down the mouse button, you move the mouse horizontally.
ImeModeFor internal use only.
InPaintToSpecifies whether the control is currently being painted.
IndexSpecifies the index of the child object in the children array attached to this object.
InheritedCursorImage used to represent the mouse pointer when it passes into the region covered by the control.
InvertAbsoluteMatrixSpecifies the inverse matrix of AbsoluteMatrix.
IsDragOverSpecifies whether a dragged object is over the area of the current control.
IsFocusedDetermines whether the control has input focus.
IsInflatedWhether the current style of this control has been actually applied to the control.
IsMouseOverSpecifies whether the mouse cursor is over the control.
IsVisibleSpecifies whether the control is visible.
KeyboardTypeDetermines the type of the virtual keyboard.
KillFocusByReturnSpecifies whether to hide the virtual keyboard by clicking the Return key.
LocalRectSpecifies the local rectangle for painting the control.
LockedSpecifies whether the control is locked at design time.
MarginsAligns the component to the margins points of other components.
Contains the maximum value the number displayed by an edit control can show.
MaxLengthSpecifies the maximum length of the text entered in this edit control.
Contains the minimum value the number displayed by an edit control can show.
ModelThe data model representing the data used by the presentation of the current control.
NameSpecifies the name of the component as referenced in code.
ObserversIndicates the TObservers object added to the TComponent.
OnGestureCallable[[Object, GestureEventInfo, bool], None]:
OpacitySpecifies the control opacity.
OwnerReturns the Component Owner
PaddingAligns the component to the padding points of other components.
ParentReturns/Sets the Control Visibility
ParentClassStyleLookupNameThe name of the default style of the parent class of this control.
ParentControlSpecifies the parent control of this control.
ParentedRectSpecifies the bounding rectangle of the control within its parent.
ParentedVisibleSpecifies whether all the control's parents are visible.
PasswordSpecifies whether this edit control shows its characters or not.
PopupMenuSpecifies the context (pop-up) menu object.
PositionReturns an access to the position of the control inside its parent
PresentationObject:
PresentationProxyPresentationProxy:
PresentationStatePresentationState:
PressedIndicates whether the control is currently pressed.
PressedPositionA point that indicates where exactly on the control the click occured.
ReadOnlyDetermines whether you can change the text of this edit control.
ResultingTextSettingsKeeps final values of text representation properties.
ReturnKeyTypeIndicates the type of action that the edit control performs when you are editing the text of the control and you press the return key on the virtual keyboard.
RootSpecifies the root parent of this object.
SceneSpecifies the current scene in which the control is drawn.
SelLengthSpecifies the number of characters that are selected.
SelStartSpecifies the position of the first selected character in the text.
SelTextSpecifies the selected portion of the edit control's text.
SelectionFillSpecifies the color and pattern used to fill the font of the selected text or to stroke the outline of it.
ShowHintSpecifies whether the Hint can be shown.
SizeSpecifies the vertical and horizontal size (Size.Height and Size.Width) of the control (in pixels).
StoredSpecifies whether this object is stored in the .XFM file.
Specifies the name of the resource object to which the current TStyledControl is linked
StyleNameSpecifies the style name for this FMX component.
This property allows you to define the current state of style
StyledSettingsDefines the set of styled text representation properties whose values are loaded from the current style and cannot be changed manually.
StylesDataValue:
TabOrderIndicates the position of the control in its parent's tab order.
TabStopEmbarcadero Technologies does not currently have any additional information.
TagStores a NativeInt integral value as a part of a component.
TagFloatCustom property that stores any floating-point value.
TagObjectCustom property that stores any object value.
TagStringCustom property that stores any string value.
Contains the text displayed by this edit control.
TextAlignSpecifies how the text will be displayed in terms of horizontal alignment.
TextContentRectEmbarcadero Technologies does not currently have any additional information.
TextPromptA hint or message to be displayed when the Text property is empty.
Keeps the values of styled text representation properties that are set in the Object Inspector or programmatically.
TouchSpecifies the touch manager component associated with the control.
TouchTargetExpansionSet of optional pixel values you can specify to expand the touch target of a FireMonkey styled control.
TypingSpecifies whether the user is typing something in this edit control.
UpdateRectSpecifies the rectangle area of the control that needs to be updated.
VCLComObjectRepresents information used internally by components that support COM.
Contains the default number displayed by an edit control.
Provides access to the Value and its Min and Max boundaries.
Defines the integer or float type of the Value number displayed by the edit box control.
VertTextAlignSpecifies how the text will be displayed in terms of vertical alignment.
VisibleReturns/Sets the Control Visibility
WidthSpecifies the horizontal size of the control (in pixels).
- AdjustSizeValue¶
Updates the width and height of this control according to its current style
- AdjustType¶
Determines if and how the width and height of this control should be modified to take the fixed space dictated by the style of this control
- AfterConstruction()¶
Responds after the last constructor has executed and loads the control presentation. FMX.EditBox.TCustomEditBox.AfterConstruction inherits from FMX.Controls.Presentation.TPresentedControl.AfterConstruction. All content below this line refers to FMX.Controls.Presentation.TPresentedControl.AfterConstruction. Responds after the last constructor has executed and loads the control presentation. AfterConstruction is called automatically after the object’s last constructor has executed. Do not call it explicitly in your applications.
- ApplyStyleLookup()¶
Gets and applies the style of a TStyledControl.
- AutoTranslate¶
Specifies whether the control’s text should be translated
- Cursor¶
Image to use to represent the mouse pointer when it passes into the region covered by the control. Change the value of Cursor to provide feedback to the user when the mouse pointer enters the control. For a list of cursor constants, see System.UITypes Constants. The image representations of the cursor depend on the theme active on the current platform. If Cursor is set to the default cursor, this control might display a different cursor when the mouse pointer is over it. The actual cursor that this control displays is the cursor defined in InheritedCursor, a read-only property that is calculated based not only in the value of Cursor in this control, but also the value of Cursor in any ancestor of this control (parent, grand-parent, and so on until the parent form).
- Type:
int
- DecimalDigits¶
Specifies the number of decimal positions of the displayed Value. This property has effect only if the ValueType property is set to Float.
- Type:
int
- DefaultStyleLookupName¶
Returns a string with the name of the default style of this control
- Font¶
Specifies the font to use when rendering the text. Set Font to specify the font to use when rendering the text. To change to a new font, specify a new TFont object. To modify a font, change the value of the Family, Size, or Style of the TFont object.
- Type:
Font
- FontColor¶
Specifies the color of the text in the edit control.
- Type:
int
- HorzIncrement¶
Represents the value with which the number is incremented or decremented when, while holding down the mouse button, you move the mouse horizontally. HorzIncrement represents the value added or decreased from the number when, while holding down the mouse button, you move the mouse to the left or to the right.
- Type:
float
- Inflate()¶
Call this procedure to get and apply its style lookup.
- Max¶
Contains the maximum value the number displayed by an edit control can show. Max sets the maximum value that can be displayed by edit controls that manipulate only numerical values.
- Type:
float
- Min¶
Contains the minimum value the number displayed by an edit control can show. Min sets the minimum value that can be displayed by edit controls that manipulate only numerical values.
- Type:
float
- NeedStyleLookup()¶
Call this procedure to indicate that this control requires to get and apply its style lookup.
- StyleLookup¶
Specifies the name of the resource object to which the current TStyledControl is linked
- StyleState¶
This property allows you to define the current state of style
- Text¶
Contains the text displayed by this edit control. Use the Text property to read the text of this edit control or to specify a new string to be displayed.
- Type:
str
- TextSettings¶
Keeps the values of styled text representation properties that are set in the Object Inspector or programmatically. TextSettings references a TTextSettings type object that handles values of styled text representation properties that are set in the Object Inspector or programmatically. TextSettings references a TTextSettings type object, which handles styled text representation properties to be used for drawing texts in this control. TTextSettings type objects provide all styled text representation properties and methods to manage them. The styled text representation properties are FontColor, TextAlign, VertTextAlign, Trimming, WordWrap, and Font (TFont.Family, TFont.Size, and TFont.Style). TTextSettings objects provide both styled text representation properties, whose values are loaded from a style (specified in StyledSettings), so all other styled text representation properties, whose values can be set manually, and methods to manage these text representation properties. The text representation properties identified in StyledSettings are loaded from the style and cannot be set manually. Remember that the HorzAlign and VertAlign text representation properties stored in the TextSettings property of a control correspond to the TextAlign and VertTextAlign properties of the control.
- Type:
TextSettings
- Value¶
Contains the default number displayed by an edit control.
- Type:
float
- ValueDec()¶
Embarcadero Technologies does not currently have any additional information.
- ValueInc()¶
Embarcadero Technologies does not currently have any additional information.
- ValueRange¶
Provides access to the Value and its Min and Max boundaries.
- Type:
- ValueType¶
Defines the integer or float type of the Value number displayed by the edit box control.
- Type:
NumValueType