sanjayjadhav

How to enable and disable the BaseCommand? BaseCommand::m_enable is read-only.

Discussion created by sanjayjadhav on Dec 12, 2013
Latest reply on Jan 9, 2014 by sanjayjadhav
Hello,

I have creates one custom command, inheriting from BaseCommand. Initially, I want to disable it and lateron, depending on some condition,want to enable it.

I observe that, BaseCommand::m_enabled can be set only in BaseCommand::OnCreate event. At the other times, this property is read-only.

So, I would like to know if it is possible to set the m_enabled property in any method other than OnCreate. Any help is appreciated.

Thanks in advance,
S.

Outcomes