TMtxFloatEdit Class

Header: Dew.Math.Controls.VCL/MtxComCtrls.h · C++Builder only
TCustomEditTMtxFloatEdit

class TMtxFloatEdit : public TCustomEdit;

Edit box for real and complex numbers.

The component inherits most TCustomEdit properties/methods and introduces some new properties. It can be used as editor for real or complex numbers with the ability to specify arbitrary (real or integer, real or complex) up/down increments. The component also features an editor, which can be accessed by holding down the CTRL key and double clicking on it. The key properties which control the increment and number formating can be set with the component editor.

The increment can also be locked to be an integer, if IntegerIncrement is set to True.

User should be carefull not to set the number formating to "0.00" and increment to "0.001" (for example). Pressing the up/down buttons in this case will not result in a change of the value.

Constructors

NameDescription
TMtxFloatEdit

Destructors

NameDescription
~TMtxFloatEdit

Properties

NameTypeDescription
ButtonTUDButton*
CplxPositionTCplxReturns the current value displayed by the component formated as a complex number.
EditorActiveboolReturns True, if the component editor is active (displayed).
EditorEnabledboolIf true, then holding down the CTRL key and double clicking the component will display the component editor.
ImFormatSystem::UnicodeStringSpecifies the number format used to display the imaginary part of the complex number.
IncrementSystem::UnicodeStringDefines the increment for the up/down buttons.
IntegerIncrementboolIf True, the increment can be only integer.
IntPositionintReturns the current value displayed by the component.
MaxValueSystem::UnicodeStringDefines the maximum accepted value displayed by the edit box.
MinValueSystem::UnicodeStringDefines the minimum accepted value displayed by the edit box.
PositiondoubleReturns the current value displayed by the component.
ReFormatSystem::UnicodeStringSpecifies the number format used to display the real part of the complex number.
RegistryPathSystem::UnicodeStringThe address in the registry where the published properties of this component are to be stored.
ScientificboolSometimes it is neccessary to keep the full floating point precision.
StoreInRegistryboolSet this property to True to save published properties to Windows registry.
ValueSystem::UnicodeStringStores the value currently displayed.

Methods

NameDescription
CheckValue
CMEnter
CMExit
CreateParams
CreateWnd
Dispatch
DownClick
ExecuteDisplays the component editor.
GetButton
GetChildren
GetEditorActive
GetEditorEnabled
GetImFormat
GetIntegerIncrement
GetMinHeight
GetReFormat
GetRegistryPath
GetScientific
GetStoreInRegistry
IsValidChar
KeyDown
KeyPress
Loaded
LoadFromRegistryLoad the published properties from the registry.
MouseDown
MouseUp
SaveToRegistrySave the published properties component to registry.
SetEditorEnabled
SetEditRect
SetEnabled
UpClick
WMCut
WMPaste
WMSize

Fields

NameTypeDescription
FIncrementTCplx
FMaxValueTCplx
FMinValueTCplx
ShiftStateTShiftState