Extends FCMCtrlEdit
Note that the type should be set before setting any values.
FCMCustomLuaWindow
.GetMeasurement*
, SetMeasurement*
and GetRangeMeasurementmethods. The type affects which methods are used for changing measurement units, for events, and for interacting with an
FCXCtrlUpDown` control.Change
event has been overridden to pass a measurement.fcxctrlmeasurementedit.Init(self)
[Internal]
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.SetText(self, str)
[Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
str |
`FCString | string |
fcxctrlmeasurementedit.SetInteger(self, anint)
[Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
anint |
number |
fcxctrlmeasurementedit.SetFloat(self, value)
[Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
value |
number |
fcxctrlmeasurementedit.GetType(self)
Returns the measurement edit’s type. The result can also be appended to "Get"
, "GetRange"
, or "Set"
to use type-specific methods.
The default type is "MeasurementInteger"
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
string |
"Measurement" , "MeasurementInteger" , "MeasurementEfix" , or "Measurement10000th" |
fcxctrlmeasurementedit.GetMeasurement(self)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.GetRangeMeasurement(self, minimum, maximum)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
minimum |
number |
|
maximum |
number |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.SetMeasurement(self, value)
[Breaking Change] [Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
value |
number |
fcxctrlmeasurementedit.IsTypeMeasurement(self)
Checks if the type is "Measurement"
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
boolean |
fcxctrlmeasurementedit.SetTypeMeasurement(self)
[Fluid]
Sets the type to "Measurement"
.
This means that the getters & setters used in events, measurement unit changes, and up down controls are GetMeasurement
, GetRangeMeasurement
, and SetMeasurement
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.GetMeasurementInteger(self)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.GetRangeMeasurementInteger(self, minimum, maximum)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
minimum |
number |
|
maximum |
number |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.SetMeasurementInteger(self, value)
[Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
value |
number |
fcxctrlmeasurementedit.IsTypeMeasurementInteger(self)
Checks if the type is "MeasurementInteger"
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
boolean |
fcxctrlmeasurementedit.SetTypeMeasurementInteger(self)
[Fluid]
Sets the type to "MeasurementInteger"
. This is the default type.
This means that the getters & setters used in events, measurement unit changes, and up down controls are GetMeasurementInteger
, GetRangeMeasurementInteger
, and SetMeasurementInteger
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.GetMeasurementEfix(self)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.GetRangeMeasurementEfix(self, minimum, maximum)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
minimum |
number |
|
maximum |
number |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.SetMeasurementEfix(self, value)
[Breaking Change] [Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
value |
number |
fcxctrlmeasurementedit.IsTypeMeasurementEfix(self)
Checks if the type is "MeasurementEfix"
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
boolean |
fcxctrlmeasurementedit.SetTypeMeasurementEfix(self)
[Fluid]
Sets the type to "MeasurementEfix"
.
This means that the getters & setters used in events, measurement unit changes, and up down controls are GetMeasurementEfix
, GetRangeMeasurementEfix
, and SetMeasurementEfix
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.GetMeasurement10000th(self)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.GetRangeMeasurement10000th(self, minimum, maximum)
[Breaking Change] [Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
minimum |
number |
|
maximum |
number |
Return type | Description |
---|---|
number |
fcxctrlmeasurementedit.SetMeasurement10000th(self, value)
[Breaking Change] [Fluid] [Override]
Override Changes:
Change
event is triggered.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
value |
number |
fcxctrlmeasurementedit.IsTypeMeasurement10000th(self)
Checks if the type is "Measurement10000th"
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
Return type | Description |
---|---|
boolean |
fcxctrlmeasurementedit.SetTypeMeasurement10000th(self)
[Fluid]
Sets the type to "Measurement10000th"
.
This means that the getters & setters used in events, measurement unit changes, and up down controls are GetMeasurement10000th
, GetRangeMeasurement10000th
, and SetMeasurement10000th
.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.UpdateMeasurementUnit(self)
[Fluid] [Internal]
Checks the parent window for a change in measurement unit and updates the control if needed.
Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
fcxctrlmeasurementedit.HandleChange(control, last_value)
[Callback Template] [Override]
The type and unit of last_value
will change depending on the measurement edit’s type. The possibilities are:
"Measurement"
=> EVPUs (with fractional part)"MeasurementInteger"
=> whole EVPUs (without fractional part)"MeasurementEfix"
=> EFIXes (1 EFIX is 1/64th of an EVPU)"Measurement10000th"
=> whole 10,000ths of an EVPUInput | Type | Description |
---|---|---|
control |
FCXCtrlMeasurementEdit |
The control that was changed. |
last_value |
number |
The previous measurement value of the control. |
fcxctrlmeasurementedit.AddHandleChange(self, callback)
[Fluid] [Override]
Override Changes:
FCXCtrlMeasurementEdit
-specific Change
event.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
callback |
function |
See HandleChange for callback signature. |
fcxctrlmeasurementedit.RemoveHandleChange(self, callback)
[Fluid] [Override]
Override Changes:
FCXCtrlMeasurementEdit
-specific Change
event.Input | Type | Description |
---|---|---|
self |
FCXCtrlMeasurementEdit |
|
callback |
function |