LM.GUI.CheckBox(label, msg)
Creates a new LM_CheckBox object
Return type: LM_CheckBox
-- *** Dialog: *** local MyDialog = {} -- empty table -- declare the dialog: function MyDialog:new(moho) local d = LM.GUI.SimpleDialog("CheckBox Test", MyDialog) local l = d:GetLayout() -- create a new LM_CheckBox object: d.MyCheckBox = LM.GUI.CheckBox("My Check Box") -- add the checkbox to the layout: l:AddChild(d.MyCheckBox) return d end function MyScript:Run(moho) -- initiate the dialog: local dlog = MyDialog:new(moho) if (dlog:DoModal() == LM.GUI.MSG_CANCEL) then return end end
Dialog with a check box
HS Shape (by hayasidist)
<< Back to LM.GUI