FCMCtrlUpDown

Summary of modifications:

  • GetConnectedEdit returns the original control object.
  • Handlers for the UpDownPressed event can now be set on a control.

Functions

Init

fcmctrlupdown.Init(self)

View source

[Internal]

Input Type Description
self FCMCtrlUpDown

GetConnectedEdit

fcmctrlupdown.GetConnectedEdit(self)

View source

[Override] Ensures that original edit control is returned.

Input Type Description
self FCMCtrlUpDown
Return type Description
FCMCtrlEdit|nil nil if there is no edit connected.

ConnectIntegerEdit

fcmctrlupdown.ConnectIntegerEdit(self, control, minvalue, maxvalue)

View source

[Override]

Input Type Description
self FCMCtrlUpDown
control FCCtrlEdit
minvalue number
maxvalue number
Return type Description
boolean true on success

ConnectMeasurementEdit

fcmctrlupdown.ConnectMeasurementEdit(self, control, minvalue, maxvalue)

View source

[Override]

Input Type Description
self FCMCtrlUpDown
control FCCtrlEdit
minvalue number
maxvalue number
Return type Description
boolean true on success

AddHandlePress

fcmctrlupdown.AddHandlePress(self, callback)

View source

[Fluid] Adds a handler for UpDownPressed events.

Input Type Description
self FCMCtrlUpDown
callback function See FCCustomLuaWindow.HandleUpDownPressed in the PDK for callback signature.

RemoveHandlePress

fcmctrlupdown.RemoveHandlePress(self, callback)

View source

[Fluid] Removes a handler added with AddHandlePress.

Input Type Description
self FCMCtrlUpDown
callback function