Profile Picture

How to Toggle NMouseOffsetCommand state on custom checkbox state change?

Posted By Niranjan Singh 12 Years Ago

How to Toggle NMouseOffsetCommand state on custom checkbox state...

Author
Message
Niranjan Singh
Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)Forum Member (41 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 49, Visits: 179
///To enable MouseOffset command
nChartControl1.Controller.Selection.Add(nChartControl1.Charts[0]);
NMouseOffsetCommand cmd = commander.Commands.GetCommandFromId((int)ChartCommand.MouseOffset) as NMouseOffsetCommand;
cmd.Execute();


The above code snippet will enable the command but how can i disable on my custom checkbox state change.

If checkBox.Checked = true command will be true and when false then it's Enabled = false.



Any Help will be appreciated.




Similar Topics


Reading This Topic