π¦ Functions
SetStyleSheet
MySpinBox:SetStyleSheet(SpinBoxStyle)
GetStyleSheet
β Returns SpinBoxStyle.
local ret = MySpinBox:GetStyleSheet()
SetFont
MySpinBox:SetFont(FontName?, Typeface?, FontSize?)
GetFont
β Returns table.
local ret = MySpinBox:GetFont()
SetTextColor
MySpinBox:SetTextColor(Color)
SetLetterSpacing
MySpinBox:SetLetterSpacing(InLetterSpacing)
GetLetterSpacing
β Returns table.
local ret = MySpinBox:GetFont()
SetFontOutlineSettings
MySpinBox:SetLetterSpacing(FontOutlineSettings)
GetFontOutlineSettings
β Returns FontOutlineSettings.
local ret = MySpinBox:GetFontOutlineSettings()
SetJustification
MySpinBox:SetJustification(InJustification)
GetJustification
β Returns TextJustify.
local ret = MySpinBox:GetJustification()
SetSpinBoxValue
MySpinBox:SetSpinBoxValue(NewValue)
GetSpinBoxValue
β Returns number.
local ret = MySpinBox:GetSpinBoxValue()
SetMinValue
MySpinBox:SetMinValue(NewMinValue)
GetMinValue
β Returns number.
local ret = MySpinBox:GetMinValue()
SetMaxValue
MySpinBox:SetMaxValue(NewMaxValue)
GetMaxValue
β Returns number.
local ret = MySpinBox:GetMaxValue()
SetSliderMinValue
MySpinBox:SetSliderMinValue(NewMinSliderValue)
GetSliderMinValue
β Returns number.
local ret = MySpinBox:GetSliderMinValue()
SetSliderMaxValue
MySpinBox:SetSliderMaxValue(NewMaxSliderValue)
GetSliderMaxValue
β Returns number.
local ret = MySpinBox:GetSliderMaxValue()
SetMinFractionalDigits
MySpinBox:SetMinFractionaLDigits(MinFractionalDigits)
GetMinFractionalDigits
β Returns number.
local ret = MySpinBox:GetMinFractionalDigits()
SetMaxFractionalDigits
MySpinBox:SetMaxFractionaLDigits(MaxFractionalDigits)
GetMaxFractionalDigits
β Returns number.
local ret = MySpinBox:GetMaxFractionalDigits()
SetAlwaysUsesDeltaSnap
MySpinBox:SetAlwaysUsesDeltaSnap(AlwaysUse)
GetAlwaysUseDeltaSnap
β Returns boolean.
local ret = MySpinBox:GetAlwaysUseDeltaSnap()
SetIsSliderEnabled
MySpinBox:SetIsSliderEnabled(EnableSlider)
SetDelta
MySpinBox:SetDelta(NewDelta)
GetDelta
β Returns number.
local ret = MySpinBox:GetDelta()
π Events
On Value Changed
Triggered when the value is changed interactively by the user
MySpinBox:BindDispatcher("OnValueChanged", function(self, Value)
-- On Value Changed was called
end)
On Value Committed
Triggered when the value is committed. Occurs when the user presses Enter or the text box loses focus.
MySpinBox:BindDispatcher("OnValueCommitted", function(self, Value, TextCommit)
-- On Value Committed was called
end)
On Begin Slider Movement
Triggered right before the slider begins to move
MySpinBox:BindDispatcher("OnBeginSliderMovement", function()
-- On Begin Slider Movement was called
end)
On End Slider Movement
Triggered right after the slider is released by the user.
MySpinBox:BindDispatcher("OnEndSliderMovement", function(self, Value)
-- On End Slider Movement was called
end)