1. Hi,

    I'm having some trouble with checkboxes... I'm not sure what I'm doing wrong :(

    I create a checkbox with:

     MyFrame.checkBox =   CreateFrame("Button","MyBox",MyFrame,"ChatConfigSmallCheckButtonTemplate")
    

    But then when i set the "OnClick" handler as follows, it generates a lua error on clicking

     MyFrame.checkBox:SetScript("OnClick",function()
    
        isChecked = MyFrame.checkBox:GetChecked()
    
     end)
    

    EDIT:

    Ok I found my problem, & it was very simple & makes me feel like a fool. I had to create the button with

    CreateFrame("CheckButton")

    Delete this post if u like :D