LM_CheckBox:SetValue(value)

Version added: before 9.5

Sets the value of the check box

ArgumentTypeDescriptionDefaultVer
valueboolTrue to set the box checked, false for unchecked< 9.5

Return type: none

This method sets the value of the check box.

Example:
function MyDialog:UpdateWidgets()
-- turn the first check box ON:
self.MyCheckBox1:SetValue(true)

-- turn the second check box OFF:
self.MyCheckBox2:SetValue(false)
end

Result:
Image

Turning LM_CheckBox ON and OFF


See also: LM.GUI.CheckBox, LM_CheckBox:Value
String "SetValue" is found in the following scripts:

Paint Bucket + (by Danfield)

WP Platter Control (by wigglepixel)

WP Import from Spine JSON (by wigglepixel)

Tagger (by Lukas)

SS - Clear Copy FBF Layer (by simplsam)

See all...