set/unset checkgroup

 

Hi guys.

 want to set/unset checkgroup items by coding. 

class CControlsDialog : public CAppDialog
{
	private:
	CCheckGroup         chgp;
public:
	CControlsDialog(void);
	~CControlsDialog(void);

	void  itemSet(int,bool);
protected:

	void              OnChangeCheckGroup(void);

   
};
I'm using RowState in the itemSet member function and it gives me the error of protected function.

CCheckGroup::RowState' - cannot access protected member function checklist.mq5

Can anyone tell me how to fix this?

Thank you :)

Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckGroup / RowState
Documentation on MQL5: Standard Library / Panels and Dialogs / CCheckGroup / RowState
  • www.mql5.com
Sets the state of the specified item. Parameters index [in]  Item index to change. select [in]  New state. Return Value true - successful...