Extends FCMCtrlUpDown
An up down control that is created by FCXCustomLuaWindow
.
FCXCtrlEdit
GetValue
and SetValue
fcxctrlupdown.Init(self)
[Internal]
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
fcxctrlupdown.GetConnectedEdit(self)
[Override]
Override Changes:
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
Return type | Description |
---|---|
FCMCtrlEdit | nil |
nil if there is no edit connected. |
fcxctrlupdown.ConnectIntegerEdit(self, control, minimum, maximum)
[Fluid] [Override]
Connects an integer edit.
The underlying methods used in GetValue
and SetValue
will be GetRangeInteger
and SetInteger
respectively.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
control |
FCMCtrlEdit |
|
minimum |
number |
|
maximum |
maximum |
fcxctrlupdown.ConnectMeasurementEdit(self, control, minimum, maximum)
[Fluid] [Override]
Connects a measurement edit. The control will be automatically registered as a measurement edit if it isn’t already.
The underlying methods used in GetValue
and SetValue
will depend on the measurement edit’s type.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
control |
FCXCtrlMeasurementEdit |
|
minimum |
number |
|
maximum |
maximum |
fcxctrlupdown.SetIntegerStepSize(self, value)
[Fluid]
Sets the step size for integer edits.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
fcxctrlupdown.SetEVPUsStepSize(self, value)
[Fluid]
Sets the step size for measurement edits that are currently displaying in EVPUs.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
fcxctrlupdown.SetInchesStepSize(self, value, is_evpus)
[Fluid]
Sets the step size for measurement edits that are currently displaying in Inches.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
|
is_evpus (optional) |
boolean |
If true , the value will be treated as an EVPU value. If false or omitted, the value will be treated in Inches. |
fcxctrlupdown.SetCentimetersStepSize(self, value, is_evpus)
[Fluid]
Sets the step size for measurement edits that are currently displaying in Centimeters.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
|
is_evpus (optional) |
boolean |
If true , the value will be treated as an EVPU value. If false or omitted, the value will be treated in Centimeters. |
fcxctrlupdown.SetPointsStepSize(self, value, is_evpus)
[Fluid]
Sets the step size for measurement edits that are currently displaying in Points.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
|
is_evpus (optional) |
boolean |
If true , the value will be treated as an EVPU value. If false or omitted, the value will be treated in Points. |
fcxctrlupdown.SetPicasStepSize(self, value, is_evpus)
[Fluid]
Sets the step size for measurement edits that are currently displaying in Picas.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
`number | string` |
is_evpus (optional) |
boolean |
If true , the value will be treated as an EVPU value. If false or omitted, the value will be treated in Picas. |
fcxctrlupdown.SetSpacesStepSize(self, value, is_evpus)
[Fluid]
Sets the step size for measurement edits that are currently displaying in Spaces.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
|
is_evpus (optional) |
boolean |
If true , the value will be treated as an EVPU value. If false or omitted, the value will be treated in Spaces. |
fcxctrlupdown.AlignWSetAlignWhenMovinghenMoving(self, on)
[Fluid]
Sets whether to align to the next multiple of a step when moving.
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
on |
boolean |
fcxctrlupdown.GetValue(self)
[Override]
Returns the value of the connected edit, clamped according to the set minimum and maximum.
Different types of connected edits will return different types and use different methods to access the value of the edit. The methods are:
GetRangeInteger
GetRangeMeasurement
GetRangeMeasurementInteger
GetRangeMeasurementEfix
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
Return type | Description |
---|---|
number |
An integer for an integer edit, EVPUs for a measurement edit, whole EVPUs for a measurement integer edit, or EFIXes for a measurement EFIX edit. |
fcxctrlupdown.SetValue(self, value)
[Fluid] [Override]
Sets the value of the attached control, clamped according to the set minimum and maximum.
Different types of connected edits will accept different types and use different methods to set the value of the edit. The methods are:
SetRangeInteger
SetRangeMeasurement
SetRangeMeasurementInteger
SetRangeMeasurementEfix
Input | Type | Description |
---|---|---|
self |
FCXCtrlUpDown |
|
value |
number |
An integer for an integer edit, EVPUs for a measurement edit, whole EVPUs for a measurement integer edit, or EFIXes for a measurement EFIX edit. |
fcxctrlupdown.GetMinimum(self)
[Override]
Input | Type | Description |
---|---|---|
self |
FCMCtrlUpDown |
Return type | Description |
---|---|
number |
An integer for integer edits or EVPUs for measurement edits. |
fcxctrlupdown.GetMaximum(self)
[Override]
Input | Type | Description |
---|---|---|
self |
FCMCtrlUpDown |
Return type | Description |
---|---|
number |
An integer for integer edits or EVPUs for measurement edits. |
fcxctrlupdown.SetRange(self, minimum, maximum)
[Fluid] [Override]
Input | Type | Description |
---|---|---|
self |
FCMCtrlUpDown |
|
minimum |
number |
An integer for integer edits or EVPUs for measurement edits. |
maximum |
number |
An integer for integer edits or EVPUs for measurement edits. |