ThumbPositionChange
custom control event (see note).ThumbPositionChange
and Command
EventsCommand events do not fire for FCCtrlSlider
controls before RGPLua 0.64, so a workaround is used to make the ThumbPositionChange
events fire.
fcmctrlslider.RegisterParent(self, window)
[Internal] [Override]
Override Changes:
FCCtrlSlider
controlsInput | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
window |
FCMCustomWindow |
fcmctrlslider.SetThumbPosition(self, position)
[Fluid] [Override]
Override Changes:
ThumbPositionChange
event is triggered.Input | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
position |
number |
fcmctrlslider.SetMinValue(self, minvalue)
[Fluid] [Override]
Override Changes:
ThumbPositionChange
is triggered.Input | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
minvalue |
number |
fcmctrlslider.SetMaxValue(self, maxvalue)
[Fluid] [Override]
Override Changes:
ThumbPositionChange
event is triggered.Input | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
maxvalue |
number |
fcmctrlslider.HandleThumbPositionChange(control, last_position)
[Callback Template]
Input | Type | Description |
---|---|---|
control |
FCMCtrlSlider |
The slider that was moved. |
last_position |
string |
The previous value of the control’s thumb position. |
fcmctrlslider.AddHandleThumbPositionChange(self, callback)
[Fluid]
Adds a handler for when the slider’s thumb position changes. The even will fire when:
Input | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
callback |
function |
See HandleThumbPositionChange for callback signature. |
fcmctrlslider.RemoveHandleThumbPositionChange(self, callback)
[Fluid]
Removes a handler added with AddHandleThumbPositionChange
.
Input | Type | Description |
---|---|---|
self |
FCMCtrlSlider |
|
callback |
function |