LM_CheckBox:SetValue(value)

Version added: before 9.5
Sets the value of the check box

Arguments:

Name Type Description Default Ver
value bool True to set the box checked, false for unchecked < 9.5

Return value:

void
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


<< Back to LM_CheckBox